summaryrefslogtreecommitdiff
path: root/internal/processing/account/account.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-10-10 15:52:49 +0200
committerLibravatar GitHub <noreply@github.com>2022-10-10 15:52:49 +0200
commit832befd727a257581d774bb6bbdeb0f81cd658e2 (patch)
treeb1fb78172b18f262ded37fd110bc8be318af233d /internal/processing/account/account.go
parent[feature] Add opt-in RSS feed for account's latest Public posts (#897) (diff)
downloadgotosocial-832befd727a257581d774bb6bbdeb0f81cd658e2.tar.xz
[chore] Make paging logic more generic (#901)
* make paging logic more generic not just for timelines! * linty linterson
Diffstat (limited to 'internal/processing/account/account.go')
-rw-r--r--internal/processing/account/account.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/account/account.go b/internal/processing/account/account.go
index b18e705ca..d2c3cddbe 100644
--- a/internal/processing/account/account.go
+++ b/internal/processing/account/account.go
@@ -60,10 +60,10 @@ type Processor interface {
Update(ctx context.Context, account *gtsmodel.Account, form *apimodel.UpdateCredentialsRequest) (*apimodel.Account, 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.
- StatusesGet(ctx context.Context, requestingAccount *gtsmodel.Account, targetAccountID string, limit int, excludeReplies bool, excludeReblogs bool, maxID string, minID string, pinned bool, mediaOnly bool, publicOnly bool) (*apimodel.TimelineResponse, gtserror.WithCode)
+ StatusesGet(ctx context.Context, requestingAccount *gtsmodel.Account, targetAccountID string, limit int, excludeReplies bool, excludeReblogs bool, maxID string, minID string, pinned bool, mediaOnly bool, publicOnly bool) (*apimodel.PageableResponse, gtserror.WithCode)
// 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.TimelineResponse, gtserror.WithCode)
+ WebStatusesGet(ctx context.Context, targetAccountID string, maxID 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.