Sort of implement personal feeds
This commit is contained in:
parent
1c216e415d
commit
8d2e008125
6 changed files with 47 additions and 5 deletions
|
@ -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"
|
||||
|
|
9
storage-new/models/FeedReason.go
Normal file
9
storage-new/models/FeedReason.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package models
|
||||
|
||||
type FeedAppearanceReason string
|
||||
|
||||
const (
|
||||
FeedAppearanceReasonBoost FeedAppearanceReason = "boost"
|
||||
FeedAppearanceReasonFollowUser FeedAppearanceReason = "follow user"
|
||||
FeedAppearanceReasonFollowTag FeedAppearanceReason = "follow tag"
|
||||
)
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue