mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-21 19:41:28 +00:00
MRF policies fix
This commit is contained in:
parent
cfddec036c
commit
34940a65df
|
@ -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