From cf71f8358e387d454f17d04c21dda77742584376 Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Mon, 28 Aug 2023 18:06:36 -0300 Subject: [PATCH] FIX: Typo in summary URL (#23298) --- .../discourse/app/components/summary-box.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/summary-box.js b/app/assets/javascripts/discourse/app/components/summary-box.js index 1827c5ab92b..691f1342934 100644 --- a/app/assets/javascripts/discourse/app/components/summary-box.js +++ b/app/assets/javascripts/discourse/app/components/summary-box.js @@ -167,18 +167,14 @@ export default class SummaryBox extends Component { this.loadingSummary = true; } - let fetchURL = `/t/${this.args.postAttrs.topicId}/strategy-summary`; + let fetchURL = `/t/${this.args.postAttrs.topicId}/strategy-summary?`; if (this.currentUser) { fetchURL += `stream=true`; - } - if (this.canRegenerate) { - if (this.currentUser) { - fetchURL += "&"; + if (this.canRegenerate) { + fetchURL += "&skip_age_check=true"; } - - fetchURL += "skip_age_check=true"; } ajax(fetchURL)