From 5f688c6318191627775ae44221eb75cb6ed2e905 Mon Sep 17 00:00:00 2001 From: Pete Date: Mon, 15 Aug 2022 06:57:41 -0700 Subject: Show BlockedBy on user page Just show this information. No blockbots required. --- mastodon/accounts.go | 1 + templates/user.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/mastodon/accounts.go b/mastodon/accounts.go index df0a3b7..dbd0a48 100644 --- a/mastodon/accounts.go +++ b/mastodon/accounts.go @@ -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"` diff --git a/templates/user.tmpl b/templates/user.tmpl index dccce7c..5342efe 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -20,6 +20,7 @@ {{if not .IsCurrent}}
{{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} + {{if .User.Pleroma.Relationship.BlockedBy}} blocks you - {{end}} {{if .User.Pleroma.Relationship.Following}}
-- cgit v1.2.3