summaryrefslogtreecommitdiff
path: root/internal/processing/status.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-06-21 15:56:00 +0200
committerLibravatar GitHub <noreply@github.com>2021-06-21 15:56:00 +0200
commita5fd6f427bab2cac03b4da5668eed18b900ba3be (patch)
tree5456928a707656a54cddcffb1199f59a4bc9039e /internal/processing/status.go
parentTestrig fixes (#50) (diff)
downloadgotosocial-a5fd6f427bab2cac03b4da5668eed18b900ba3be.tar.xz
Deletes+unboosts (#52)
* Status deletes properly streamed now. * Unboosts now work locally and federated. * Documentation updates.
Diffstat (limited to 'internal/processing/status.go')
-rw-r--r--internal/processing/status.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/processing/status.go b/internal/processing/status.go
index 6848436d4..ab3843ded 100644
--- a/internal/processing/status.go
+++ b/internal/processing/status.go
@@ -40,6 +40,10 @@ func (p *processor) StatusBoost(authed *oauth.Auth, targetStatusID string) (*api
return p.statusProcessor.Boost(authed.Account, authed.Application, targetStatusID)
}
+func (p *processor) StatusUnboost(authed *oauth.Auth, targetStatusID string) (*apimodel.Status, gtserror.WithCode) {
+ return p.statusProcessor.Unboost(authed.Account, authed.Application, targetStatusID)
+}
+
func (p *processor) StatusBoostedBy(authed *oauth.Auth, targetStatusID string) ([]*apimodel.Account, gtserror.WithCode) {
return p.statusProcessor.BoostedBy(authed.Account, targetStatusID)
}