summaryrefslogtreecommitdiff
path: root/internal/api/client/emoji/emojisget.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/emoji/emojisget.go')
-rw-r--r--internal/api/client/emoji/emojisget.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/api/client/emoji/emojisget.go b/internal/api/client/emoji/emojisget.go
index 0feb5d9cc..62223e992 100644
--- a/internal/api/client/emoji/emojisget.go
+++ b/internal/api/client/emoji/emojisget.go
@@ -4,9 +4,15 @@ import (
"net/http"
"github.com/gin-gonic/gin"
+ "github.com/superseriousbusiness/gotosocial/internal/api"
)
// EmojisGETHandler returns a list of custom emojis enabled on the instance
func (m *Module) EmojisGETHandler(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{})
}