mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 19:56:39 +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
|
@ -54,6 +54,13 @@ func (p *processor) SearchGet(ctx context.Context, authed *oauth.Auth, search *a
|
||||||
Statuses: []apimodel.Status{},
|
Statuses: []apimodel.Status{},
|
||||||
Hashtags: []apimodel.Tag{},
|
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{}
|
foundAccounts := []*gtsmodel.Account{}
|
||||||
foundStatuses := []*gtsmodel.Status{}
|
foundStatuses := []*gtsmodel.Status{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue