Feed insertions and other feed stuff
This commit is contained in:
parent
72e1c67488
commit
5232bb0741
7 changed files with 134 additions and 8 deletions
|
@ -34,3 +34,4 @@ type Feed struct {
|
|||
|
||||
// Suffix added to feeds created as the default feed for a user
|
||||
const FeedDefaultSuffix = "-default"
|
||||
const GlobalFeedName = "global"
|
||||
|
|
|
@ -71,4 +71,17 @@ type IUserToUserRelation interface {
|
|||
// r.user_id = @id AND
|
||||
// r.relation = 'follow'
|
||||
CountFollowingForId(id string) (int, error)
|
||||
|
||||
// Get the ids of all local accounts following the user with the target id
|
||||
//
|
||||
// SELECT
|
||||
// r.user_id
|
||||
// FROM
|
||||
// user_to_user_relations r
|
||||
// LEFT JOIN users u ON r.user_id = u.id
|
||||
// LEFT JOIN remote_servers s ON u.server_id = s.id
|
||||
// WHERE
|
||||
// s.is_self = true
|
||||
// AND r.target_user_id = @id;
|
||||
GetLocalFollowerIdsOfId(id string) ([]string, error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue