File tree 2 files changed +9
-7
lines changed
server/src/core/server/services
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { rejectComment } from "coral-server/stacks";
16
16
import {
17
17
GQLDSAReportDecisionLegality ,
18
18
GQLDSAReportStatus ,
19
+ GQLREJECTION_REASON_CODE ,
19
20
} from "coral-server/graph/schema/__generated__/types" ;
20
21
21
22
import { I18n } from "../i18n" ;
@@ -182,13 +183,12 @@ export async function makeDSAReportDecision(
182
183
input : MakeDSAReportDecisionInput ,
183
184
now = new Date ( )
184
185
) {
185
- // TODO: Send through rejection legalGrounds and detailedExplanation once backend support is available
186
186
const {
187
187
commentID,
188
188
commentRevisionID,
189
189
userID,
190
- // legalGrounds,
191
- // detailedExplanation,
190
+ legalGrounds,
191
+ detailedExplanation,
192
192
} = input ;
193
193
194
194
// REJECT if ILLEGAL
@@ -205,7 +205,12 @@ export async function makeDSAReportDecision(
205
205
commentID ,
206
206
commentRevisionID ,
207
207
userID ,
208
- now
208
+ now ,
209
+ {
210
+ code : GQLREJECTION_REASON_CODE . ILLEGAL_CONTENT ,
211
+ legalGrounds,
212
+ detailedExplanation,
213
+ }
209
214
) ;
210
215
}
211
216
Original file line number Diff line number Diff line change @@ -151,9 +151,6 @@ export class InternalNotificationContext {
151
151
152
152
const result = translate ( bundle , text , key , args ) ;
153
153
154
- // eslint-disable-next-line no-console
155
- console . log ( result , args ) ;
156
-
157
154
return result ;
158
155
}
159
156
You can’t perform that action at this time.
0 commit comments