summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorKenny Au <kennethjeremyau@gmail.com>2018-06-27 13:35:15 -0600
committerHarrison Healey <harrisonmhealey@gmail.com>2018-06-27 15:35:15 -0400
commit437f9f5b64ddb4e1f84e6c4e993120d074001777 (patch)
tree5ffbfc4f9730ca3cd1de82635c78b2b48bdc374c /model/config.go
parent9abd74c5e31625c1c11fcedafc44f8aadc4ecdb0 (diff)
downloadchat-437f9f5b64ddb4e1f84e6c4e993120d074001777.tar.gz
chat-437f9f5b64ddb4e1f84e6c4e993120d074001777.tar.bz2
chat-437f9f5b64ddb4e1f84e6c4e993120d074001777.zip
Gfycat integration (#8971)
* Gfycat integration * Added gfycat api credentials to config.
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go15
1 files changed, 15 insertions, 0 deletions
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)
}