summaryrefslogtreecommitdiff
path: root/internal/processing/account/account.go
diff options
context:
space:
mode:
authorLibravatar Matthew Phillips <matthew@matthewphillips.info>2022-12-09 05:37:12 -0500
committerLibravatar GitHub <noreply@github.com>2022-12-09 11:37:12 +0100
commit477ae50933ab7447757752ec35bf898db287acff (patch)
tree28750a1aea3cda180ca1461cfad7ea130c22bba1 /internal/processing/account/account.go
parent[chore] move caches to a separate State{} structure (#1078) (diff)
downloadgotosocial-477ae50933ab7447757752ec35bf898db287acff.tar.xz
[feature] Allow users to create + delete bookbarks, and view bookmarked statuses (#1168)
* Implement Bookmarks * Update based on review comments * Update swagger doc * Fix argument passing to status.Bookmark * Update changed test * Updates based on latest PR review
Diffstat (limited to 'internal/processing/account/account.go')
-rw-r--r--internal/processing/account/account.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/processing/account/account.go b/internal/processing/account/account.go
index 3eccbc27d..4c29621ed 100644
--- a/internal/processing/account/account.go
+++ b/internal/processing/account/account.go
@@ -64,6 +64,9 @@ type Processor interface {
// WebStatusesGet fetches a number of statuses (in descending order) from the given account. It selects only
// statuses which are suitable for showing on the public web profile of an account.
WebStatusesGet(ctx context.Context, targetAccountID string, maxID string) (*apimodel.PageableResponse, gtserror.WithCode)
+ // StatusesGet fetches a number of statuses (in time descending order) from the given account, filtered by visibility for
+ // the account given in authed.
+ BookmarksGet(ctx context.Context, requestingAccount *gtsmodel.Account, limit int, maxID string, minID string) (*apimodel.PageableResponse, gtserror.WithCode)
// FollowersGet fetches a list of the target account's followers.
FollowersGet(ctx context.Context, requestingAccount *gtsmodel.Account, targetAccountID string) ([]apimodel.Account, gtserror.WithCode)
// FollowingGet fetches a list of the accounts that target account is following.