From bce74e963abeb96a9c335f5461611dee544abc4c Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 12 Feb 2026 12:34:14 +0100 Subject: Enhance Mastodon post actions and metadata handling for reblogs and favourites --- common/mastodonpostsdatabase.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/mastodonpostsdatabase.h') diff --git a/common/mastodonpostsdatabase.h b/common/mastodonpostsdatabase.h index 66d3f09..9736fa8 100644 --- a/common/mastodonpostsdatabase.h +++ b/common/mastodonpostsdatabase.h @@ -35,6 +35,7 @@ public: const QList > &images, const QString &url, const QString &boostedBy, int repliesCount, int favouritesCount, int reblogsCount, + bool favourited, bool reblogged, const QString &instanceUrl, int account); @@ -44,6 +45,8 @@ public: static int repliesCount(const SocialPost::ConstPtr &post); static int favouritesCount(const SocialPost::ConstPtr &post); static int reblogsCount(const SocialPost::ConstPtr &post); + static bool favourited(const SocialPost::ConstPtr &post); + static bool reblogged(const SocialPost::ConstPtr &post); static QString instanceUrl(const SocialPost::ConstPtr &post); }; -- cgit v1.2.3