Live video on the AT Protocol
79
fork

Configure Feed

Select the types of activity you want to include in your feed.

chat_message: flip relation i guess

+1 -1
+1 -1
pkg/model/chat_message.go
··· 25 25 StreamerRepoDID string `json:"streamerRepoDID" gorm:"column:streamer_repo_did;idx_recent_messages,priority:1"` 26 26 StreamerRepo *Repo `json:"streamerRepo,omitempty" gorm:"foreignKey:DID;references:StreamerRepoDID"` 27 27 ReplyToCID *string `json:"replyToCID,omitempty" gorm:"column:reply_to_cid"` 28 - ReplyTo *ChatMessage `json:"replyTo,omitempty" gorm:"foreignKey:CID;references:ReplyToCID"` 28 + ReplyTo *ChatMessage `json:"replyTo,omitempty" gorm:"foreignKey:ReplyToCID;references:CID"` 29 29 } 30 30 31 31 // hashString creates a hash from a string, used for deterministic color selection