···1515 // used very frequently in a reclaimed context
1616 if word != "" && word != "faggot" && word != "tranny" {
1717 c.AddRecordFlag("bad-word-text")
1818- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in post text: %s", word))
1818+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in post text or alttext: %s", word))
1919 c.Notify("slack")
2020 break
2121 }
···2323 tok = strings.TrimSuffix(tok, "s")
2424 if c.InSet("worst-words", tok) {
2525 c.AddRecordFlag("bad-word-text")
2626- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in post text: %s", word))
2626+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in post text or alttext: %s", word))
2727 c.Notify("slack")
2828 break
2929 }
···3838 word := keyword.SlugContainsExplicitSlur(keyword.Slugify(*profile.DisplayName))
3939 if word != "" {
4040 c.AddRecordFlag("bad-word-name")
4141- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in display name: %s", word))
4141+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in display name: %s", word))
4242 c.Notify("slack")
4343 }
4444 }
···4747 tok = strings.TrimSuffix(tok, "s")
4848 if c.InSet("worst-words", tok) {
4949 c.AddRecordFlag("bad-word-text")
5050- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in profile description: %s", word))
5050+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in profile description: %s", tok))
5151 c.Notify("slack")
5252 break
5353 }
···108108 word := keyword.SlugContainsExplicitSlur(keyword.Slugify(name))
109109 if word != "" {
110110 c.AddRecordFlag("bad-word-name")
111111- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in name: %s", tok))
111111+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in name: %s", word))
112112 c.Notify("slack")
113113 }
114114 tokens := keyword.TokenizeText(name)
115115 for _, tok := range tokens {
116116 if c.InSet("bad-words", tok) {
117117 c.AddRecordFlag("bad-word-name")
118118- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in name: %s", tok))
118118+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in name: %s", tok))
119119 c.Notify("slack")
120120 break
121121 }
···126126 word := keyword.SlugContainsExplicitSlur(keyword.Slugify(text))
127127 if word != "" {
128128 c.AddRecordFlag("bad-word-text")
129129- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in description: %s", word))
129129+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in description: %s", word))
130130 c.Notify("slack")
131131 }
132132 tokens := keyword.TokenizeText(text)
···135135 tok = strings.TrimSuffix(tok, "s")
136136 if c.InSet("worst-words", tok) {
137137 c.AddRecordFlag("bad-word-text")
138138- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in description: %s", tok))
138138+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in description: %s", tok))
139139 c.Notify("slack")
140140 break
141141 }
···152152 word := keyword.SlugIsExplicitSlur(keyword.Slugify(c.RecordOp.RecordKey.String()))
153153 if word != "" {
154154 c.AddRecordFlag("bad-word-recordkey")
155155- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in record-key (URL): %s", word))
155155+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in record-key (URL): %s", word))
156156 c.Notify("slack")
157157 }
158158 tokens := keyword.TokenizeIdentifier(c.RecordOp.RecordKey.String())
159159 for _, tok := range tokens {
160160 if c.InSet("bad-words", tok) {
161161 c.AddRecordFlag("bad-word-recordkey")
162162- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in record-key (URL): %s", tok))
162162+ c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("possible bad word in record-key (URL): %s", tok))
163163 c.Notify("slack")
164164 break
165165 }
···174174 word := keyword.SlugContainsExplicitSlur(keyword.Slugify(c.Account.Identity.Handle.String()))
175175 if word != "" {
176176 c.AddAccountFlag("bad-word-handle")
177177- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in handle (username): %s", word))
177177+ c.ReportAccount(automod.ReportReasonRude, fmt.Sprintf("possible bad word in handle (username): %s", word))
178178 c.Notify("slack")
179179 return nil
180180 }
···183183 for _, tok := range tokens {
184184 if c.InSet("bad-words", tok) {
185185 c.AddAccountFlag("bad-word-handle")
186186- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in handle (username): %s", tok))
186186+ c.ReportAccount(automod.ReportReasonRude, fmt.Sprintf("possible bad word in handle (username): %s", tok))
187187 c.Notify("slack")
188188 break
189189 }
···201201 word := keyword.SlugContainsExplicitSlur(keyword.Slugify(c.Account.Identity.DID.String()))
202202 if word != "" {
203203 c.AddAccountFlag("bad-word-did")
204204- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in DID (account identifier): %s", word))
204204+ c.ReportAccount(automod.ReportReasonRude, fmt.Sprintf("possible bad word in DID (account identifier): %s", word))
205205 c.Notify("slack")
206206 return nil
207207 }
···210210 for _, tok := range tokens {
211211 if c.InSet("bad-words", tok) {
212212 c.AddAccountFlag("bad-word-did")
213213- // TODO: c.ReportRecord(automod.ReportReasonRude, fmt.Sprintf("bad word in DID (account identifier): %s", tok))
213213+ c.ReportAccount(automod.ReportReasonRude, fmt.Sprintf("possible bad word in DID (account identifier): %s", tok))
214214 c.Notify("slack")
215215 break
216216 }