mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 20:13:16 -06:00
appease the linter :p
Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
aaf20de797
commit
f60d7cfda5
1 changed files with 0 additions and 2 deletions
|
|
@ -69,14 +69,12 @@ func (p *processor) SearchGet(ctx context.Context, authed *oauth.Auth, searchQue
|
||||||
// 1. check if it's a status
|
// 1. check if it's a status
|
||||||
if foundStatus, err := p.searchStatusByURI(ctx, authed, uri, searchQuery.Resolve); err == nil && foundStatus != nil {
|
if foundStatus, err := p.searchStatusByURI(ctx, authed, uri, searchQuery.Resolve); err == nil && foundStatus != nil {
|
||||||
foundStatuses = append(foundStatuses, foundStatus)
|
foundStatuses = append(foundStatuses, foundStatus)
|
||||||
foundOne = true
|
|
||||||
l.Debug("got a status by searching by URI")
|
l.Debug("got a status by searching by URI")
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. check if it's an account
|
// 2. check if it's an account
|
||||||
if foundAccount, err := p.searchAccountByURI(ctx, authed, uri, searchQuery.Resolve); err == nil && foundAccount != nil {
|
if foundAccount, err := p.searchAccountByURI(ctx, authed, uri, searchQuery.Resolve); err == nil && foundAccount != nil {
|
||||||
foundAccounts = append(foundAccounts, foundAccount)
|
foundAccounts = append(foundAccounts, foundAccount)
|
||||||
foundOne = true
|
|
||||||
l.Debug("got an account by searching by URI")
|
l.Debug("got an account by searching by URI")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue