From 8be8d24f6cd7258df8e099b70ac055153a5ef130 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 11 Jun 2018 01:44:41 +0200 Subject: [PATCH] Added support for bot tag in Easy::Account --- src/easy/entities/account.cpp | 5 +++++ src/easy/entities/account.hpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/easy/entities/account.cpp b/src/easy/entities/account.cpp index 6e073d6..cc8083c 100644 --- a/src/easy/entities/account.cpp +++ b/src/easy/entities/account.cpp @@ -43,6 +43,11 @@ const string Account::avatar_static() const return get_string("avatar_static"); } +const bool Account::bot() const +{ + return get_bool("bot"); +} + const system_clock::time_point Account::created_at() const { return get_time_point("created_at"); diff --git a/src/easy/entities/account.hpp b/src/easy/entities/account.hpp index 53c34e5..b554aca 100644 --- a/src/easy/entities/account.hpp +++ b/src/easy/entities/account.hpp @@ -72,6 +72,11 @@ namespace Mastodon */ const string avatar_static() const; + /*! + * @brief Returns true if the account performs automated actions + */ + const bool bot() const; + /*! * @brief Returns time of creation */