MRF Keyword Policy Disclosure
This commit is contained in:
parent
8fcb9c42aa
commit
dafced3a86
4 changed files with 63 additions and 2 deletions
|
@ -11,7 +11,10 @@ const MRFTransparencyPanel = {
|
|||
rejectInstances: state => get(state, 'instance.federationPolicy.mrf_simple.reject', []),
|
||||
ftlRemovalInstances: state => get(state, 'instance.federationPolicy.mrf_simple.federated_timeline_removal', []),
|
||||
mediaNsfwInstances: state => get(state, 'instance.federationPolicy.mrf_simple.media_nsfw', []),
|
||||
mediaRemovalInstances: state => get(state, 'instance.federationPolicy.mrf_simple.media_removal', [])
|
||||
mediaRemovalInstances: state => get(state, 'instance.federationPolicy.mrf_simple.media_removal', []),
|
||||
keywordsFtlRemoval: state => get(state, 'instance.federationPolicy.mrf_keyword.federated_timeline_removal', []),
|
||||
keywordsReject: state => get(state, 'instance.federationPolicy.mrf_keyword.reject', []),
|
||||
keywordsReplace: state => get(state, 'instance.federationPolicy.mrf_keyword.replace', [])
|
||||
}),
|
||||
hasInstanceSpecificPolicies () {
|
||||
return this.quarantineInstances.length ||
|
||||
|
@ -20,6 +23,11 @@ const MRFTransparencyPanel = {
|
|||
this.ftlRemovalInstances.length ||
|
||||
this.mediaNsfwInstances.length ||
|
||||
this.mediaRemovalInstances.length
|
||||
},
|
||||
hasKeywordPolicies () {
|
||||
return this.keywordsFtlRemoval.length ||
|
||||
this.keywordsReject.length ||
|
||||
this.keywordsReplace.length
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,49 @@
|
|||
/>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h2 v-if="hasKeywordPolicies">
|
||||
{{ $t("about.mrf.keyword.keyword_policies") }}
|
||||
</h2>
|
||||
|
||||
<div v-if="keywordsFtlRemoval.length">
|
||||
<h4>{{ $t("about.mrf.keyword.ftl_removal") }}</h4>
|
||||
|
||||
<ul>
|
||||
<li
|
||||
v-for="keyword in keywordsFtlRemoval"
|
||||
:key="keyword"
|
||||
v-text="keyword"
|
||||
/>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div v-if="keywordsReject.length">
|
||||
<h4>{{ $t("about.mrf.keyword.reject") }}</h4>
|
||||
|
||||
<ul>
|
||||
<li
|
||||
v-for="keyword in keywordsReject"
|
||||
:key="keyword"
|
||||
v-text="keyword"
|
||||
/>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div v-if="keywordsReplace.length">
|
||||
<h4>{{ $t("about.mrf.keyword.replace") }}</h4>
|
||||
|
||||
<ul>
|
||||
<li
|
||||
v-for="keyword in keywordsReplace"
|
||||
:key="keyword"
|
||||
>
|
||||
{{ keyword.pattern }}
|
||||
{{ $t("about.mrf.keyword.is_replaced_by") }}
|
||||
{{ keyword.replacement }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue