mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-26 17:03:01 +00:00
Show BlockedBy on user page
Just show this information. No blockbots required.
This commit is contained in:
parent
1661219ab6
commit
5f688c6318
@ -189,6 +189,7 @@ type Relationship struct {
|
||||
Following bool `json:"following"`
|
||||
FollowedBy bool `json:"followed_by"`
|
||||
Blocking bool `json:"blocking"`
|
||||
BlockedBy bool `json:"blocked_by"`
|
||||
Muting bool `json:"muting"`
|
||||
MutingNotifications bool `json:"muting_notifications"`
|
||||
Subscribing bool `json:"subscribing"`
|
||||
|
@ -20,6 +20,7 @@
|
||||
{{if not .IsCurrent}}
|
||||
<div>
|
||||
<span> {{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} </span>
|
||||
{{if .User.Pleroma.Relationship.BlockedBy}} blocks you - {{end}}
|
||||
{{if .User.Pleroma.Relationship.Following}}
|
||||
<form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
|
||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
||||
|
Loading…
Reference in New Issue
Block a user