summaryrefslogtreecommitdiff
path: root/internal/processing/account
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-07-07 14:58:53 +0200
committerLibravatar GitHub <noreply@github.com>2023-07-07 14:58:53 +0200
commitac564c18624aea229defc38bc1cc516d6c787520 (patch)
tree00fabbb17f9432bbb8fd9b2de4b185ede40f3f39 /internal/processing/account
parent[docs] Rework backups a bit (#1942) (diff)
downloadgotosocial-ac564c18624aea229defc38bc1cc516d6c787520.tar.xz
[bugfix] Reorder web view logic, other small fixes (#1954)
Diffstat (limited to 'internal/processing/account')
-rw-r--r--internal/processing/account/statuses.go6
1 files changed, 6 insertions, 0 deletions
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)
+}