summaryrefslogtreecommitdiff
path: root/internal/processing/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/search.go')
-rw-r--r--internal/processing/search.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/processing/search.go b/internal/processing/search.go
index b766b4ba2..2e5ec2025 100644
--- a/internal/processing/search.go
+++ b/internal/processing/search.go
@@ -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{}