mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:18:52 +00:00
improved code comment
This commit is contained in:
parent
2560915163
commit
101e6bd192
1 changed files with 4 additions and 3 deletions
|
@ -46,7 +46,8 @@ func (f *federatingDB) Delete(ctx context.Context, id *url.URL) error {
|
|||
requesting := activityContext.requestingAcct
|
||||
receiving := activityContext.receivingAcct
|
||||
|
||||
// Serialize ID URI.
|
||||
// Serialize deleted ID URI.
|
||||
// (may be status OR account)
|
||||
uriStr := id.String()
|
||||
|
||||
var (
|
||||
|
@ -54,7 +55,7 @@ func (f *federatingDB) Delete(ctx context.Context, id *url.URL) error {
|
|||
err error
|
||||
)
|
||||
|
||||
// Attempt to delete account.
|
||||
// Try delete as an account URI.
|
||||
ok, err = f.deleteAccount(ctx,
|
||||
requesting,
|
||||
receiving,
|
||||
|
@ -67,7 +68,7 @@ func (f *federatingDB) Delete(ctx context.Context, id *url.URL) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Attempt to delete status.
|
||||
// Try delete as a status URI.
|
||||
ok, err = f.deleteStatus(ctx,
|
||||
requesting,
|
||||
receiving,
|
||||
|
|
Loading…
Reference in a new issue