MM-36127 Check for emojis in message attachment titles (#17943)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8121ad7512
Коммит
370321a823
@@ -270,6 +270,10 @@ func getEmojiNamesForPost(post *model.Post, reactions []*model.Reaction) []strin
|
||||
|
||||
// Post attachments
|
||||
for _, attachment := range post.Attachments() {
|
||||
if attachment.Title != "" {
|
||||
names = append(names, getEmojiNamesForString(attachment.Title)...)
|
||||
}
|
||||
|
||||
if attachment.Text != "" {
|
||||
names = append(names, getEmojiNamesForString(attachment.Text)...)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user