Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Merge branch 'main' into tiptap

Matt Roberts9eb8db146a36
diff --cc app/tasks/new_comment.go
index 796e45f22,05c1f4740..7bf0aa2b8
--- a/app/tasks/new_comment.go
+++ b/app/tasks/new_comment.go
@@@ -157,7 -120,9 +157,8 @@@ func NotifyAboutNewComment(comment *ent
tenant := c.Tenant()
baseURL, logoURL := web.BaseURL(c), web.LogoURL(c)
- webhookProps := webhook.Props{"comment": strippedContent}
+ webhookProps := webhook.Props{"comment": contentString.SanitizeMentions()}
+ webhookProps["comment_id"] = comment.ID
-
webhookProps.SetPost(post, "post", baseURL, true, true)
webhookProps.SetUser(author, "author")
webhookProps.SetTenant(tenant, "tenant", baseURL, logoURL)