mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-03 17:03:16 -06:00
[chore] Refactor federatingDB.Undo, avoid 500 errors on Undo Like
This commit is contained in:
parent
71261c62c2
commit
5a26bec7de
3 changed files with 197 additions and 90 deletions
|
|
@ -861,7 +861,7 @@ func (c *Converter) getASObjectStatus(ctx context.Context, id string, with ap.Wi
|
|||
// Check for status in database with provided object URI.
|
||||
status, err := c.state.DB.GetStatusByURI(ctx, object[0].String())
|
||||
if err != nil {
|
||||
return nil, gtserror.Newf("error getting object account from database: %w", err)
|
||||
return nil, gtserror.Newf("error getting object status from database: %w", err)
|
||||
}
|
||||
|
||||
return status, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue