mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-30 08:10:32 +00:00
[bugfix] Fix tusky search issue by returning empty if offset is greater than zero (#786)
This commit is contained in:
parent
ea902bb500
commit
c5c425b4e7
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,13 @@ func (p *processor) SearchGet(ctx context.Context, authed *oauth.Auth, search *a
|
|||
Statuses: []apimodel.Status{},
|
||||
Hashtags: []apimodel.Tag{},
|
||||
}
|
||||
|
||||
// currently the search will only ever return one result,
|
||||
// so return nothing if the offset is greater than 0
|
||||
if search.Offset > 0 {
|
||||
return searchResult, nil
|
||||
}
|
||||
|
||||
foundAccounts := []*gtsmodel.Account{}
|
||||
foundStatuses := []*gtsmodel.Status{}
|
||||
|
||||
|
|
Loading…
Reference in a new issue