[bugfix] Fix minor API issue w/ boosted statuses (#2846)

This commit is contained in:
tobi
2024-04-17 12:41:40 +02:00
committed by GitHub
parent 6de5717d7f
commit 8cf685fbe9
3 changed files with 34 additions and 15 deletions

View File

@ -36,7 +36,7 @@ import (
)
type statusInteractions struct {
Faved bool
Favourited bool
Muted bool
Bookmarked bool
Reblogged bool
@ -51,7 +51,7 @@ func (c *Converter) interactionsWithStatusForAccount(ctx context.Context, s *gts
if err != nil {
return nil, fmt.Errorf("error checking if requesting account has faved status: %s", err)
}
si.Faved = faved
si.Favourited = faved
reblogged, err := c.state.DB.IsStatusBoostedBy(ctx, s.ID, requestingAccount.ID)
if err != nil {