Gfycat integration (#8971)
* Gfycat integration * Added gfycat api credentials to config.
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
9abd74c5e3
Коммит
437f9f5b64
@@ -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)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user