diff options
| author | 2024-06-18 18:18:00 +0200 | |
|---|---|---|
| committer | 2024-06-18 18:18:00 +0200 | |
| commit | d2b3d37724a999d4cc78c46157593267e29d184e (patch) | |
| tree | ac72be127d8adb80bbd756ad970ae14df7b5618f /internal/api/client/search | |
| parent | [feature] Implement types[] param for notifications (#3009) (diff) | |
| download | gotosocial-d2b3d37724a999d4cc78c46157593267e29d184e.tar.xz | |
[feature/frontend] Reports frontend v2 (#3022)
* use apiutil + paging in admin processor+handlers
* we're making it happen
* fix little whoopsie
* styling for report list
* don't youuuu forget about meee don't don't don't don't
* last bits
* sanitize content before showing in report statuses
* update report docs
Diffstat (limited to 'internal/api/client/search')
| -rw-r--r-- | internal/api/client/search/searchget.go | 2 | ||||
| -rw-r--r-- | internal/api/client/search/searchget_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/search/searchget.go b/internal/api/client/search/searchget.go index d7ab81388..0f9595efc 100644 --- a/internal/api/client/search/searchget.go +++ b/internal/api/client/search/searchget.go @@ -247,7 +247,7 @@ func (m *Module) SearchGETHandler(c *gin.Context) { Resolve: resolve, Following: following, ExcludeUnreviewed: excludeUnreviewed, - AccountID: c.Query(apiutil.SearchAccountIDKey), + AccountID: c.Query(apiutil.AccountIDKey), APIv1: apiVersion == apiutil.APIv1, } diff --git a/internal/api/client/search/searchget_test.go b/internal/api/client/search/searchget_test.go index a0d0cad0e..27e5f782d 100644 --- a/internal/api/client/search/searchget_test.go +++ b/internal/api/client/search/searchget_test.go @@ -105,7 +105,7 @@ func (suite *SearchGetTestSuite) getSearch( } if fromAccountID != nil { - queryParts = append(queryParts, apiutil.SearchAccountIDKey+"="+url.QueryEscape(*fromAccountID)) + queryParts = append(queryParts, apiutil.AccountIDKey+"="+url.QueryEscape(*fromAccountID)) } requestURL.RawQuery = strings.Join(queryParts, "&") |
