favourites GET implementation (#95)

This commit is contained in:
Tobi Smethurst
2021-07-09 18:32:48 +02:00
committed by GitHub
parent c5180b3860
commit c7da64922f
16 changed files with 491 additions and 127 deletions

View File

@@ -17,6 +17,11 @@ type Filter interface {
//
// This function will call StatusVisible internally, so it's not necessary to call it beforehand.
StatusHometimelineable(targetStatus *gtsmodel.Status, requestingAccount *gtsmodel.Account) (bool, error)
// StatusPublictimelineable returns true if targetStatus should be in the public timeline of the requesting account.
//
// This function will call StatusVisible internally, so it's not necessary to call it beforehand.
StatusPublictimelineable(targetStatus *gtsmodel.Status, timelineOwnerAccount *gtsmodel.Account) (bool, error)
}
type filter struct {