Sort of implement personal feeds

This commit is contained in:
Melody Becker 2025-06-13 16:45:13 +02:00
parent 1c216e415d
commit 8d2e008125
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
6 changed files with 47 additions and 5 deletions

View file

@ -31,3 +31,6 @@ type Feed struct {
// Otherwise, use its own key
PublicKey sql.NullString
}
// Suffix added to feeds created as the default feed for a user
const FeedDefaultSuffix = "-default"

View file

@ -0,0 +1,9 @@
package models
type FeedAppearanceReason string
const (
FeedAppearanceReasonBoost FeedAppearanceReason = "boost"
FeedAppearanceReasonFollowUser FeedAppearanceReason = "follow user"
FeedAppearanceReasonFollowTag FeedAppearanceReason = "follow tag"
)

View file

@ -25,7 +25,7 @@ type NoteToFeed struct {
CreatedAt time.Time
Note Note // The note being assigned
NoteId string
// Feed Feed
// FeedId uint64
// Reason AppearanceReason
Feed *Feed
FeedId uint64
Reason string
}