From 22c763f1ffdc7dc845be03c05851d7b896081cb2 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Wed, 11 Feb 2026 17:10:58 +0100 Subject: Add post metadata to events view and enhance notification handling --- .../buteo-sync-plugin-mastodon-posts/mastodonpostssyncadaptor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'buteo-plugins/buteo-sync-plugin-mastodon-posts/mastodonpostssyncadaptor.cpp') diff --git a/buteo-plugins/buteo-sync-plugin-mastodon-posts/mastodonpostssyncadaptor.cpp b/buteo-plugins/buteo-sync-plugin-mastodon-posts/mastodonpostssyncadaptor.cpp index c7c696e..6165931 100644 --- a/buteo-plugins/buteo-sync-plugin-mastodon-posts/mastodonpostssyncadaptor.cpp +++ b/buteo-plugins/buteo-sync-plugin-mastodon-posts/mastodonpostssyncadaptor.cpp @@ -270,6 +270,9 @@ void MastodonPostsSyncAdaptor::finishedPostsHandler() } const QString body = sanitizeContent(postObject.value(QStringLiteral("content")).toString()); + const int repliesCount = postObject.value(QStringLiteral("replies_count")).toInt(); + const int favouritesCount = postObject.value(QStringLiteral("favourites_count")).toInt(); + const int reblogsCount = postObject.value(QStringLiteral("reblogs_count")).toInt(); QList > imageList; const QJsonArray mediaAttachments = postObject.value(QStringLiteral("media_attachments")).toArray(); @@ -304,6 +307,9 @@ void MastodonPostsSyncAdaptor::finishedPostsHandler() imageList, url, boostedBy, + repliesCount, + favouritesCount, + reblogsCount, apiHost(accountId), accountId); } -- cgit v1.2.3