Skip to content

Commit

Permalink
use template strings
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Dec 16, 2024
1 parent 6a83d8c commit ca800f7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions assets/javascripts/discourse/components/ai-spam.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,15 @@ export default class AiSpam extends Component {

if (this.args.model.flagging_username) {
detected.href = getURL(
"/review?flagged_by=" +
this.args.model.flagging_username +
"&status=all&sort_order=created_at"
`/review?flagged_by=${this.args.model.flagging_username}&status=all&sort_order=created_at`
);

falsePositives.href = getURL(
"/review?flagged_by=" +
this.args.model.flagging_username +
"&status=rejected&sort_order=created_at"
`/review?flagged_by=${this.args.model.flagging_username}&status=rejected&sort_order=created_at`
);

falseNegatives.href = getURL(
'/review?status=approved&sort_order=created_at&additional_filters={"ai_spam_false_negative":true}&order=created&score_type=' +
this.args.model.spam_score_type
`/review?status=approved&sort_order=created_at&additional_filters={"ai_spam_false_negative":true}&order=created&score_type=${this.args.model.spam_score_type}`
);
}
return [
Expand Down

0 comments on commit ca800f7

Please sign in to comment.