Just show this information. No blockbots required. master
authorPete <pete@debu.gs>
Mon, 15 Aug 2022 13:57:41 +0000 (06:57 -0700)
committerPete <pete@debu.gs>
Mon, 15 Aug 2022 13:57:41 +0000 (06:57 -0700)
mastodon/accounts.go
templates/user.tmpl

index 694e672f506069d088284d1cb696fde001711776..d29eb242a7376b2e2a0e08f80c84f221d15f9628 100644 (file)
@@ -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"`
index 06f04431305c791c97397a7217db5507082c0598..130cc0575cd458fb2969d62a3117ca2a561e58e0 100644 (file)
@@ -21,6 +21,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}}">