summaryrefslogtreecommitdiff
path: root/internal/processing/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.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.go')
-rw-r--r--internal/processing/account.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/account.go b/internal/processing/account.go
index 6cba8b9c4..94f0dac89 100644
--- a/internal/processing/account.go
+++ b/internal/processing/account.go
@@ -55,11 +55,11 @@ func (p *processor) AccountUpdate(ctx context.Context, authed *oauth.Auth, form
return p.accountProcessor.Update(ctx, authed.Account, form)
}
-func (p *processor) AccountStatusesGet(ctx context.Context, authed *oauth.Auth, targetAccountID string, limit int, excludeReplies bool, excludeReblogs bool, maxID string, minID string, pinnedOnly bool, mediaOnly bool, publicOnly bool) (*apimodel.TimelineResponse, gtserror.WithCode) {
+func (p *processor) AccountStatusesGet(ctx context.Context, authed *oauth.Auth, targetAccountID string, limit int, excludeReplies bool, excludeReblogs bool, maxID string, minID string, pinnedOnly bool, mediaOnly bool, publicOnly bool) (*apimodel.PageableResponse, gtserror.WithCode) {
return p.accountProcessor.StatusesGet(ctx, authed.Account, targetAccountID, limit, excludeReplies, excludeReblogs, maxID, minID, pinnedOnly, mediaOnly, publicOnly)
}
-func (p *processor) AccountWebStatusesGet(ctx context.Context, targetAccountID string, maxID string) (*apimodel.TimelineResponse, gtserror.WithCode) {
+func (p *processor) AccountWebStatusesGet(ctx context.Context, targetAccountID string, maxID string) (*apimodel.PageableResponse, gtserror.WithCode) {
return p.accountProcessor.WebStatusesGet(ctx, targetAccountID, maxID)
}