summaryrefslogtreecommitdiff
path: root/internal/api/model/relationship.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-02-20 18:50:54 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-20 17:50:54 +0000
commit8cafa6b74b81fd8f0e5730007acdabd4c4e98944 (patch)
treebdea20d2bf47ed76c95b3f98e735d87112cc1e95 /internal/api/model/relationship.go
parent[bugfix] use start + end line in regex when validating emoji via API (#2671) (diff)
downloadgotosocial-8cafa6b74b81fd8f0e5730007acdabd4c4e98944.tar.xz
[feature] Add `requested_by` to relationship model (#2672)
* [feature] Add `requested_by` to relationship model * whoops, missed some tests
Diffstat (limited to 'internal/api/model/relationship.go')
-rw-r--r--internal/api/model/relationship.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/model/relationship.go b/internal/api/model/relationship.go
index dfb72bfe5..bb80791b3 100644
--- a/internal/api/model/relationship.go
+++ b/internal/api/model/relationship.go
@@ -42,6 +42,8 @@ type Relationship struct {
MutingNotifications bool `json:"muting_notifications"`
// You have requested to follow this account, and the request is pending.
Requested bool `json:"requested"`
+ // This account has requested to follow you, and the request is pending.
+ RequestedBy bool `json:"requested_by"`
// You are blocking this account's domain.
DomainBlocking bool `json:"domain_blocking"`
// You are featuring this account on your profile.