From ba9d6b467a1f03447789844048d913738c843569 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 10 Nov 2023 19:29:26 +0100 Subject: [feature] Media attachment placeholders (#2331) * [feature] Use placeholders for unknown media types * fix read of underreported small files * switch to reduce nesting * simplify cleanup --- internal/gtserror/error.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'internal/gtserror/error.go') diff --git a/internal/gtserror/error.go b/internal/gtserror/error.go index 85dc0d54c..21d580c4e 100644 --- a/internal/gtserror/error.go +++ b/internal/gtserror/error.go @@ -43,9 +43,10 @@ const ( // Unretrievable checks error for a stored "unretrievable" flag. // // Unretrievable indicates that a call to retrieve a resource -// (account, status, etc) could not be fulfilled, either because -// it was not found locally, or because some prerequisite remote -// resource call failed, making it impossible to return the item. +// (account, status, attachment, etc) could not be fulfilled, +// either because it was not found locally, or because some +// prerequisite remote resource call failed, making it impossible +// to return the item. func Unretrievable(err error) bool { _, ok := errors.Value(err, unrtrvableKey).(struct{}) return ok -- cgit v1.2.3