diff options
Diffstat (limited to 'internal/api/client/filter')
-rw-r--r-- | internal/api/client/filter/filtersget.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/api/client/filter/filtersget.go b/internal/api/client/filter/filtersget.go index 079d39f35..f0367d40c 100644 --- a/internal/api/client/filter/filtersget.go +++ b/internal/api/client/filter/filtersget.go @@ -4,9 +4,15 @@ import ( "net/http" "github.com/gin-gonic/gin" + "github.com/superseriousbusiness/gotosocial/internal/api" ) // FiltersGETHandler returns a list of filters set by/for the authed account func (m *Module) FiltersGETHandler(c *gin.Context) { + if _, err := api.NegotiateAccept(c, api.JSONAcceptHeaders...); err != nil { + c.JSON(http.StatusNotAcceptable, gin.H{"error": err.Error()}) + return + } + c.JSON(http.StatusOK, []string{}) } |