[MM15037] Stop sending notifications to user whose Oauth bot posted (#15953)

Co-authored-by: Cam Graff <cameron@woodridgesoftware.com>
Этот коммит содержится в:
camgraff
2021-01-26 09:33:44 -06:00
коммит произвёл GitHub
родитель 4b4fc58e7f
Коммит 02523cb186
3 изменённых файлов: 60 добавлений и 1 удалений

Просмотреть файл

@@ -695,3 +695,8 @@ func RewriteImageURLs(message string, f func(string) string) string {
return string(result)
}
func (o *Post) IsFromOAuthBot() bool {
props := o.GetProps()
return props["from_webhook"] == "true" && props["override_username"] != ""
}