From 101e6bd19233034c64b516884ae7a4954e2d059b Mon Sep 17 00:00:00 2001 From: kim Date: Fri, 26 Apr 2024 12:32:53 +0100 Subject: [PATCH] improved code comment --- internal/federation/federatingdb/delete.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/federation/federatingdb/delete.go b/internal/federation/federatingdb/delete.go index f13a6f9b1..5effbb913 100644 --- a/internal/federation/federatingdb/delete.go +++ b/internal/federation/federatingdb/delete.go @@ -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,