fix: Productionビルドで通報の即時解決の一覧が見えない問題を修正 (#129)
This commit is contained in:
parent
d08ea708fe
commit
99232ed417
|
@ -71,14 +71,14 @@ export class ReportAbuseProcessorService {
|
|||
const isReportContentPatternMatched = resolver.reportContentPattern ? new RE2(resolver.reportContentPattern).test(job.data.comment) : true;
|
||||
|
||||
if (isTargetUserPatternMatched && isReporterPatternMatched && isReportContentPatternMatched) {
|
||||
if (resolver.forward && job.data.targetUserHost !== null) {
|
||||
if (resolver.forward && job.data.targetUserHost !== null && job.data.reporterHost === null) {
|
||||
this.queueService.deliver(actor, this.apRendererService.addContext(this.apRendererService.renderFlag(actor, targetUser.uri!, job.data.comment)), targetUser.inbox, false);
|
||||
}
|
||||
|
||||
await this.abuseUserReportsRepository.update(job.data.id, {
|
||||
resolved: true,
|
||||
assigneeId: actor.id,
|
||||
forwarded: resolver.forward && job.data.targetUserHost !== null,
|
||||
forwarded: resolver.forward && job.data.targetUserHost !== null && job.data.reporterHost === null,
|
||||
});
|
||||
|
||||
return;
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
<MkAbuseReportResolver v-model="editingResolver" :data="(resolver as any)" :editable="editableResolver === resolver.id">
|
||||
<template #button>
|
||||
<div v-if="editableResolver !== resolver.id">
|
||||
<MkButton primary inline :class="$style['button-margin']" @click="edit(resolver.id)"><i class="ti ti-pencil"></i> {{ i18n.ts.edit }}</MkButton>
|
||||
<MkButton primary inline :class="$style.button-margin" @click="edit(resolver.id)"><i class="ti ti-pencil"></i> {{ i18n.ts.edit }}</MkButton>
|
||||
<MkButton danger inline @click="deleteResolver(resolver.id)"><i class="ti ti-trash"></i> {{ i18n.ts.remove }}</MkButton>
|
||||
</div>
|
||||
<div v-else>
|
||||
|
|
Loading…
Reference in New Issue