diff options
| author | Andrew Branson <andrew.branson@jolla.com> | 2026-02-12 12:34:14 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@jolla.com> | 2026-02-12 15:05:57 +0100 |
| commit | bce74e963abeb96a9c335f5461611dee544abc4c (patch) | |
| tree | ca584a97f1094212c79942702c6b96f6c66029c0 /common/mastodonpostsdatabase.h | |
| parent | 6ec21cf79e0103b874086089673800bd32fc6bea (diff) | |
Enhance Mastodon post actions and metadata handling for reblogs and favourites
Diffstat (limited to 'common/mastodonpostsdatabase.h')
| -rw-r--r-- | common/mastodonpostsdatabase.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<QPair<QString, SocialPostImage::ImageType> > &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); }; |
