diff options
author | 2023-11-10 19:29:26 +0100 | |
---|---|---|
committer | 2023-11-10 19:29:26 +0100 | |
commit | ba9d6b467a1f03447789844048d913738c843569 (patch) | |
tree | 5a464ee4a33f26e3284179582ab6d3332d9d5388 /internal/gtserror/error.go | |
parent | [chore/bugfix/horror] Allow `expires_in` and poll choices to be parsed from s... (diff) | |
download | gotosocial-ba9d6b467a1f03447789844048d913738c843569.tar.xz |
[feature] Media attachment placeholders (#2331)
* [feature] Use placeholders for unknown media types
* fix read of underreported small files
* switch to reduce nesting
* simplify cleanup
Diffstat (limited to 'internal/gtserror/error.go')
-rw-r--r-- | internal/gtserror/error.go | 7 |
1 files changed, 4 insertions, 3 deletions
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 |