1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

cleanup(services/mailer): mark deadcode for removal

There is no activities_model.Action* when sending a review comment,
this is deadcode and should be removed. Or a new event should be added
to differentiate it from a regular comment when evaluating templates.
This commit is contained in:
Earl Warren 2024-05-18 18:42:54 +02:00
parent 55c850a8a8
commit fc45a0d9ba
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -517,7 +517,7 @@ func actionToTemplate(issue *issues_model.Issue, actionType activities_model.Act
case issues_model.ReviewTypeReject:
name = "reject"
default:
name = "review"
name = "review" // TODO: there is no activities_model.Action* when sending a review comment, this is deadcode and should be removed
}
case issues_model.CommentTypeCode:
name = "code"