mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-24 00:03:31 -06:00
[chore] Refactor federatingDB.Undo, avoid 500 errors on Undo Like (#3310)
This commit is contained in:
parent
71261c62c2
commit
0567b319c6
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