diff --git a/src/easy/entities/relationship.cpp b/src/easy/entities/relationship.cpp index 7a6ce08..f7332d0 100644 --- a/src/easy/entities/relationship.cpp +++ b/src/easy/entities/relationship.cpp @@ -30,7 +30,9 @@ bool Relationship::valid() const "muting", "muting_notifications", "requested", - "domain_blocking" + "domain_blocking", + "showing_reblogs", + "endorsed" }); } @@ -83,3 +85,8 @@ bool Relationship::showing_notifications() const { return get_bool("showing_notifications"); } + +bool Relationship::showing_reblogs() const +{ + return get_bool("showing_reblogs"); +} diff --git a/src/easy/entities/relationship.hpp b/src/easy/entities/relationship.hpp index a367bbf..cdb07c0 100644 --- a/src/easy/entities/relationship.hpp +++ b/src/easy/entities/relationship.hpp @@ -49,74 +49,81 @@ namespace Easy virtual bool valid() const override; /*! - * @brief Returns true if the user is blocking the account + * @brief Returns true if the user is blocking the account. * * @since before 0.11.0 */ bool blocking() const; /*! - * @brief Returns true if the user is blocking the account's domain + * @brief Returns true if the user is blocking the account's domain. * * @since before 0.11.0 */ bool domain_blocking() const; /*! - * @brief Returns true if the account is endorsed by the user + * @brief Returns true if the account is endorsed by the user. * * @since 0.19.0 */ bool endorsed() const; /*! - * @brief Returns true if the user is being followed by the account + * @brief Returns true if the user is being followed by the account. * * @since before 0.11.0 */ bool followed_by() const; /*! - * @brief Returns true if the user is being following the account + * @brief Returns true if the user is being following the account. * * @since before 0.11.0 */ bool following() const; /*! - * @brief Returns the target account ID + * @brief Returns the target account ID. * * @since before 0.11.0 */ const string id() const; /*! - * @brief Returns true if the user is muting the account + * @brief Returns true if the user is muting the account. * * @since before 0.11.0 */ bool muting() const; /*! - * @brief Returns true if the user is also muting notifications + * @brief Returns true if the user is also muting notifications. * * @since before 0.11.0 */ bool muting_notifications() const; /*! - * @brief Returns true if the user has requested to follow the account + * @brief Returns true if the user has requested to follow the account. * * @since before 0.11.0 */ bool requested() const; /*! - * @brief Returns true if the user is showing notifications + * @brief Returns true if the user is showing notifications. * * @since 0.19.0 */ bool showing_notifications() const; + + /*! + * @brief Returns true if the user is showing reblogs. + * + * @since 0.106.0 + */ + bool showing_reblogs() const; }; } }