aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/list_item.cpp')
-rw-r--r--src/list_item.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/list_item.cpp b/src/list_item.cpp
index b235d2b..deead65 100644
--- a/src/list_item.cpp
+++ b/src/list_item.cpp
@@ -1,4 +1,5 @@
#include "list_item.h"
+#include "src/activitypub/apactivity.h"
#include "src/types.h"
#define ICON_PATH_PREFIX "res/icons"
@@ -50,5 +51,8 @@ StatusType StatusListItem::get_status_type() {
}
const QString StatusListItem::get_info_html(int text_zone_width, QLocale* locale) {
- return data_archive->get_html_status_info(status_index, text_zone_width, status_type, locale);
+ APActivity* activity = data_archive->get_activity(status_index, {status_type});
+ QString html = activity->get_html_render({text_zone_width, locale});
+ delete activity; activity = nullptr;
+ return html;
}