aboutsummaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 8f72f23..82f4b37 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1,6 +1,5 @@
#include "mainwindow.h"
#include "./ui_mainwindow.h"
-#include "src/activitypub/appost.h"
#include "src/archive/base_archive.h"
#include "src/finddialog.h"
#include "src/list_item.h"
@@ -154,8 +153,9 @@ void MainWindow::on_actionOpen_URL_triggered(bool checked) {
if (ok and not url.isEmpty()) {
Instance* instance = Instance::create_instance();
APPost* post = instance->get_post_from_url(url);
- QString html = post->get_html_render({ui->statusInfoText->width(), &locale_context});
- ui->statusInfoText->setHtml(html);
+ // Activity will be freed by StatusInfoWidget
+ APActivity* activity = new APActivity({.object = post});
+ status_info_widget->do_process_activity(activity);
delete instance; instance = nullptr;
} else return;
}