From ac564c18624aea229defc38bc1cc516d6c787520 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 7 Jul 2023 14:58:53 +0200 Subject: [bugfix] Reorder web view logic, other small fixes (#1954) --- internal/processing/account/statuses.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/processing/account') diff --git a/internal/processing/account/statuses.go b/internal/processing/account/statuses.go index cd6859b21..df7064b79 100644 --- a/internal/processing/account/statuses.go +++ b/internal/processing/account/statuses.go @@ -197,3 +197,9 @@ func (p *Processor) WebStatusesGet(ctx context.Context, targetAccountID string, NextMaxIDValue: nextMaxIDValue, }) } + +// PinnedStatusesGet is a shortcut for getting just an account's pinned statuses. +// Under the hood, it just calls StatusesGet using mostly default parameters. +func (p *Processor) PinnedStatusesGet(ctx context.Context, requestingAccount *gtsmodel.Account, targetAccountID string) (*apimodel.PageableResponse, gtserror.WithCode) { + return p.StatusesGet(ctx, requestingAccount, targetAccountID, 0, false, false, "", "", true, false, false) +} -- cgit v1.2.3