From 5aac009e969cc3bd15c484ba3437348cb7a4d186 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sat, 20 Jan 2024 21:57:39 -0500 Subject: Implemement Actor information tab This class still has improvements to be made, but it works and I am satisfied with it! --- src/archive/mastodon.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/archive/mastodon.h') diff --git a/src/archive/mastodon.h b/src/archive/mastodon.h index 75bc7ec..f148047 100644 --- a/src/archive/mastodon.h +++ b/src/archive/mastodon.h @@ -3,6 +3,7 @@ #include "src/archive/base_archive.h" #include "src/activitypub/fields.h" #include "src/activitypub/apactivity.h" +#include "src/activitypub/apactor.h" #include "src/types.h" #include @@ -19,6 +20,7 @@ public: void update_status_list(ViewStatusTypes allowed_types, QListWidget *parent); APActivity* get_activity(ArchiveItemRef index, Hinting_t hinting = {}); + APActor* get_main_actor(); const QString get_html_status_text(ArchiveItemRef status_index); const QString get_instance_address(); private: @@ -28,6 +30,7 @@ private: QJsonObject *outbox_json = nullptr; QJsonArray *outbox_items = nullptr; + APActor* actor = nullptr; bool is_status_type_allowed(StatusType status_type, ViewStatusTypes allowed_types); StatusType get_status_type(QJsonObject obj); -- cgit v1.2.3-54-g00ecf