Skip to content

Commit 93d1c07

Browse files
authored
Merge pull request #2274 from citizenos/#2223
fix: argument moderation paths to match the ones in the token
2 parents 6f22c7a + 4edc0ba commit 93d1c07

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/services/topic-argument.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class TopicArgumentService extends ItemsListService {
154154
};
155155

156156
moderate(data: any) {
157-
const path = this.Location.getAbsoluteUrlApi('/api/topics/:topicId/discussions/:discussionId/comments/:commentId/reports/:reportId/moderate', data)
157+
const path = this.Location.getAbsoluteUrlApi('/api/topics/:topicId/comments/:commentId/reports/:reportId/moderate', data)
158158
const headers = {
159159
'Authorization': 'Bearer ' + data.token
160160
};

src/app/topic/components/argument-report-moderate/argument-report-moderate.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export class ArgumentReportModerateDialogComponent {
9494
take(1)
9595
).subscribe({
9696
next: (report) => {
97-
const reportDialog = dialog.open(ArgumentReportModerateComponent, { data: { report, topicId: this.topicId , commentId: this.commentId, token: this.token } });
97+
console.log(report);
98+
const reportDialog = dialog.open(ArgumentReportModerateComponent, { data: { report, topicId: this.topicId , discussionId: this.discussionId, commentId: this.commentId, token: this.token } });
9899
reportDialog.afterClosed().subscribe(() => {
99100
router.navigate(['topics', this.topicId]);
100101
})

0 commit comments

Comments
 (0)