diff options
author | 2021-06-21 15:56:00 +0200 | |
---|---|---|
committer | 2021-06-21 15:56:00 +0200 | |
commit | a5fd6f427bab2cac03b4da5668eed18b900ba3be (patch) | |
tree | 5456928a707656a54cddcffb1199f59a4bc9039e /internal/processing/status.go | |
parent | Testrig fixes (#50) (diff) | |
download | gotosocial-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.go | 4 |
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) } |