aboutsummaryrefslogtreecommitdiff
path: root/mastodon
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2024-02-12 05:51:06 +0000
committerr <r@freesoftwareextremist.com>2024-02-12 05:51:06 +0000
commit6ad1c5436ae4b623143db9def4b160213456a69e (patch)
tree62cb56595a2cd5d1eb19b68df9fd2aec44368fc5 /mastodon
parent11ea3b4d47a732fe1c6abc39ce452f899f70859f (diff)
downloadbloat-6ad1c5436ae4b623143db9def4b160213456a69e.tar.gz
bloat-6ad1c5436ae4b623143db9def4b160213456a69e.zip
Show follow request count on user page
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/accounts.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/mastodon/accounts.go b/mastodon/accounts.go
index 1a0ac2e..31021fd 100644
--- a/mastodon/accounts.go
+++ b/mastodon/accounts.go
@@ -40,6 +40,9 @@ type Account struct {
Bot bool `json:"bot"`
Source *AccountSource `json:"source"`
Pleroma *AccountPleroma `json:"pleroma"`
+
+ // Duplicate field for compatibilty with Pleroma
+ FollowRequestsCount int64 `json:"follow_requests_count"`
}
// Field is a Mastodon account profile field.
@@ -51,11 +54,12 @@ type Field struct {
// AccountSource is a Mastodon account profile field.
type AccountSource struct {
- Privacy *string `json:"privacy"`
- Sensitive *bool `json:"sensitive"`
- Language *string `json:"language"`
- Note *string `json:"note"`
- Fields *[]Field `json:"fields"`
+ Privacy *string `json:"privacy"`
+ Sensitive *bool `json:"sensitive"`
+ Language *string `json:"language"`
+ Note *string `json:"note"`
+ Fields *[]Field `json:"fields"`
+ FollowRequestsCount int64 `json:"follow_requests_count"`
}
// GetAccount return Account.