Browse Source

Show BlockedBy on user page

Just show this information. No blockbots required.
master
Pete 1 month ago committed by r
parent
commit
5f688c6318
  1. 1
      mastodon/accounts.go
  2. 1
      templates/user.tmpl

1
mastodon/accounts.go

@ -189,6 +189,7 @@ type Relationship struct { @@ -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"`

1
templates/user.tmpl

@ -20,6 +20,7 @@ @@ -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…
Cancel
Save