MRF policies fix

This commit is contained in:
localhost_frssoft 2023-11-11 02:59:32 +03:00
parent cfddec036c
commit 34940a65df
2 changed files with 20 additions and 6 deletions

View File

@ -64,8 +64,16 @@ type MetaData struct {
} }
type FederationInfo struct { type FederationInfo struct {
Enabled bool `json:enabled"` Enabled bool `json:"enabled"`
MrfPolicies []string `json:mrf_policies"` 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"`
} }

View File

@ -73,10 +73,16 @@
<div> <div>
{{if .Instance.Pleroma}} {{if .Instance.Pleroma}}
<div class="federation-enabled"> Federation enabled: {{.Instance.Pleroma.MetaData.Federation.Enabled}} </div> <div class="federation-enabled"> Federation enabled: {{.Instance.Pleroma.MetaData.Federation.Enabled}} </div>
<div class="mrf-policies"> MRF Policies </div> <h6> MRF Policies </h6>
{{range .Instance.Pleroma.MetaData.Federation.MrfPolicies}} {{range .Instance.Pleroma.MetaData.Federation.MrfPolicies}}{{.}}<br>{{end}}
{{.}}<br> <h6> Rejected instances </h6>
{{end}} {{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}} {{end}}
<details> <details>
<summary>Current peers ({{.Instance.Stats.DomainCount}})</summary> <summary>Current peers ({{.Instance.Stats.DomainCount}})</summary>