From 6868b6a4654a79441647fb7230f54aca2eaf6694 Mon Sep 17 00:00:00 2001 From: uwaa Date: Mon, 30 Dec 2024 01:14:55 +0000 Subject: [PATCH] pleroma: add NoBot --- Pleroma/Models/Account.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Pleroma/Models/Account.cs b/Pleroma/Models/Account.cs index 1de85eb..4689ccc 100644 --- a/Pleroma/Models/Account.cs +++ b/Pleroma/Models/Account.cs @@ -53,6 +53,11 @@ public class Account : ASObject } } + /// + /// If true, the user opts-out of automated interactions. Bots must not follow these users, nor reply, favorite, boost, or store posts from these users. + /// + public bool NoBot => Bio != null && Bio.Contains("#nobot", StringComparison.OrdinalIgnoreCase); + [JsonConstructor()] internal Account() {