[chore] Refactor federatingDB.Undo, avoid 500 errors on Undo Like (#3310)

This commit is contained in:
tobi
2024-09-16 17:49:40 +02:00
committed by GitHub
parent 71261c62c2
commit 0567b319c6
3 changed files with 197 additions and 90 deletions

View File

@@ -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