diff options
author | ConfuSomu | 2024-01-20 21:57:39 -0500 |
---|---|---|
committer | ConfuSomu | 2024-01-20 21:57:39 -0500 |
commit | 5aac009e969cc3bd15c484ba3437348cb7a4d186 (patch) | |
tree | 96cff55a273b9de31d639b00f7139110946ce1b6 /src/archive/mastodon.h | |
parent | 328c9b166e9d623cd1b80c7ae064baf6172da58f (diff) | |
download | ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.tar ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.tar.gz ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.zip |
Implemement Actor information tab
This class still has improvements to be made, but it works and I am
satisfied with it!
Diffstat (limited to 'src/archive/mastodon.h')
-rw-r--r-- | src/archive/mastodon.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <QJsonDocument> @@ -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); |