From 272d06897a7881e3d0f5a9c04f21949093dfd451 Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Mon, 24 Apr 2023 18:57:48 +0200 Subject: [PATCH] In this server all accounts are bots --- src/mastodon_api/accounts/types.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mastodon_api/accounts/types.rs b/src/mastodon_api/accounts/types.rs index db353d9..0182cb4 100644 --- a/src/mastodon_api/accounts/types.rs +++ b/src/mastodon_api/accounts/types.rs @@ -91,11 +91,12 @@ pub struct Account { pub acct: String, pub url: String, pub display_name: Option, + pub locked: bool, + pub bot: bool, pub created_at: DateTime, pub note: Option, pub avatar: Option, pub header: Option, - pub locked: bool, pub identity_proofs: Vec, pub payment_options: Vec, pub fields: Vec, @@ -185,11 +186,12 @@ impl Account { acct: profile.acct, url: profile_url, display_name: profile.display_name, + locked: profile.manually_approves_followers, + bot: true, created_at: profile.created_at, note: profile.bio, avatar: avatar_url, header: header_url, - locked: profile.manually_approves_followers, identity_proofs, payment_options, fields: extra_fields,