[MM15037] Stop sending notifications to user whose Oauth bot posted (#15953)
Co-authored-by: Cam Graff <cameron@woodridgesoftware.com>
Этот коммит содержится в:
@@ -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"] != ""
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user