FIX: Typo in summary URL (#23298)

This commit is contained in:
Roman Rizzi 2023-08-28 18:06:36 -03:00 committed by GitHub
parent e20de81de3
commit cf71f8358e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -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)