From e3052e8c825da699162ea25367e860ac3c66f461 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:17:10 +0100 Subject: [bugfix] Don't return Account or Status if new and dereferencing failed, other small fixes (#2563) * tidy up account, status, webfingering logic a wee bit * go fmt * invert published check * alter resp initialization * get Published from account in typeutils * don't instantiate error for no darn good reason * shadow err * don't repeat error codes in wrapped errors * don't wrap error unnecessarily --- internal/ap/interfaces.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/ap/interfaces.go') diff --git a/internal/ap/interfaces.go b/internal/ap/interfaces.go index f548dff0b..45ddbfba7 100644 --- a/internal/ap/interfaces.go +++ b/internal/ap/interfaces.go @@ -163,6 +163,7 @@ type Accountable interface { WithManuallyApprovesFollowers WithEndpoints WithTag + WithPublished } // Statusable represents the minimum activitypub interface for representing a 'status'. -- cgit v1.2.3