diff options
| author | 2023-06-22 20:46:36 +0100 | |
|---|---|---|
| committer | 2023-06-22 20:46:36 +0100 | |
| commit | 9a22102fa8b1ce47571d5bba71e8f36895d21bf0 (patch) | |
| tree | 3c2af6db0a3905d31243cd840d1dd50bea59dbb0 /internal/processing/search/lookup.go | |
| parent | [docs] Clarify email requirement for OIDC (#1918) (diff) | |
| download | gotosocial-9a22102fa8b1ce47571d5bba71e8f36895d21bf0.tar.xz | |
[bugfix/chore] oauth entropy fix + media cleanup tasks rewrite (#1853)
Diffstat (limited to 'internal/processing/search/lookup.go')
| -rw-r--r-- | internal/processing/search/lookup.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/processing/search/lookup.go b/internal/processing/search/lookup.go index 0f2a4191b..d50183221 100644 --- a/internal/processing/search/lookup.go +++ b/internal/processing/search/lookup.go @@ -23,10 +23,8 @@ import ( "fmt" "strings" - errorsv2 "codeberg.org/gruf/go-errors/v2" "codeberg.org/gruf/go-kv" apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/log" @@ -82,7 +80,7 @@ func (p *Processor) Lookup( false, // never resolve! ) if err != nil { - if errorsv2.Assignable(err, (*dereferencing.ErrNotRetrievable)(nil)) { + if gtserror.Unretrievable(err) { // ErrNotRetrievable is fine, just wrap it in // a 404 to indicate we couldn't find anything. err := fmt.Errorf("%s not found", query) |
