[bugfix] Fix tusky search issue by returning empty if offset is greater than zero (#786)
This commit is contained in:
parent
ea902bb500
commit
c5c425b4e7
|
@ -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 New Issue