diff options
Diffstat (limited to 'internal/processing/status/boost.go')
| -rw-r--r-- | internal/processing/status/boost.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/processing/status/boost.go b/internal/processing/status/boost.go index 4a97706ab..d3fa87255 100644 --- a/internal/processing/status/boost.go +++ b/internal/processing/status/boost.go @@ -210,7 +210,15 @@ func (p *Processor) BoostRemove( }) } - return p.c.GetAPIStatus(ctx, requester, target) + // For client convenience, mark the status as unboosted + // even though side effects probably haven't completed yet. + unboostedStatus, errWithCode := p.c.GetAPIStatus(ctx, requester, target) + if errWithCode != nil { + return nil, errWithCode + } + unboostedStatus.Reblogged = false + + return unboostedStatus, nil } // StatusBoostedBy returns a slice of accounts that have boosted the given status, filtered according to privacy settings. |
