mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-12-22 11:23:33 +02:00
MRF policies fix
This commit is contained in:
parent
cfddec036c
commit
34940a65df
2 changed files with 20 additions and 6 deletions
|
@ -64,8 +64,16 @@ type MetaData struct {
|
|||
}
|
||||
|
||||
type FederationInfo struct {
|
||||
Enabled bool `json:enabled"`
|
||||
MrfPolicies []string `json:mrf_policies"`
|
||||
Enabled bool `json:"enabled"`
|
||||
MrfPolicies []string `json:"mrf_policies"`
|
||||
MrfSimple MRFSimple `json:"mrf_simple"`
|
||||
}
|
||||
|
||||
type MRFSimple struct {
|
||||
Reject []string `json:"reject"`
|
||||
MediaNsfw []string `json:"media_nsfw"`
|
||||
FederatedTimelineRemoval []string `json:"federated_timeline_removal"`
|
||||
RejectDeletes []string `json:"reject_deletes"`
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -73,10 +73,16 @@
|
|||
<div>
|
||||
{{if .Instance.Pleroma}}
|
||||
<div class="federation-enabled"> Federation enabled: {{.Instance.Pleroma.MetaData.Federation.Enabled}} </div>
|
||||
<div class="mrf-policies"> MRF Policies </div>
|
||||
{{range .Instance.Pleroma.MetaData.Federation.MrfPolicies}}
|
||||
{{.}}<br>
|
||||
{{end}}
|
||||
<h6> MRF Policies </h6>
|
||||
{{range .Instance.Pleroma.MetaData.Federation.MrfPolicies}}{{.}}<br>{{end}}
|
||||
<h6> Rejected instances </h6>
|
||||
{{range .Instance.Pleroma.MetaData.Federation.MrfSimple.Reject}}{{.}}<br>{{end}}
|
||||
<h6> Force NSFW instances </h6>
|
||||
{{range .Instance.Pleroma.MetaData.Federation.MrfSimple.MediaNsfw}}{{.}}<br>{{end}}
|
||||
<h6> Hiden from federated timeline instances </h6>
|
||||
{{range .Instance.Pleroma.MetaData.Federation.MrfSimple.FederatedTimelineRemoval}}{{.}}<br>{{end}}
|
||||
<h6> Rejected deletion activities </h6>
|
||||
{{range .Instance.Pleroma.MetaData.Federation.MrfSimple.RejectDeletes}}{{.}}<br>{{end}}
|
||||
{{end}}
|
||||
<details>
|
||||
<summary>Current peers ({{.Instance.Stats.DomainCount}})</summary>
|
||||
|
|
Loading…
Reference in a new issue