From 437f9f5b64ddb4e1f84e6c4e993120d074001777 Mon Sep 17 00:00:00 2001 From: Kenny Au Date: Wed, 27 Jun 2018 13:35:15 -0600 Subject: Gfycat integration (#8971) * Gfycat integration * Added gfycat api credentials to config. --- model/config.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'model/config.go') diff --git a/model/config.go b/model/config.go index 868bb01d5..ce66f2f05 100644 --- a/model/config.go +++ b/model/config.go @@ -210,6 +210,9 @@ type ServiceSettings struct { WebserverMode *string EnableCustomEmoji *bool EnableEmojiPicker *bool + EnableGifPicker *bool + GfycatApiKey *string + GfycatApiSecret *string RestrictCustomEmojiCreation *string RestrictPostDelete *string AllowEditPost *string @@ -413,6 +416,18 @@ func (s *ServiceSettings) SetDefaults() { s.EnableEmojiPicker = NewBool(true) } + if s.EnableGifPicker == nil { + s.EnableGifPicker = NewBool(true) + } + + if s.GfycatApiKey == nil { + s.GfycatApiKey = NewString("") + } + + if s.GfycatApiSecret == nil { + s.GfycatApiSecret = NewString("") + } + if s.RestrictCustomEmojiCreation == nil { s.RestrictCustomEmojiCreation = NewString(RESTRICT_EMOJI_CREATION_ALL) } -- cgit v1.2.3-1-g7c22