aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'src/activitypub')
-rw-r--r--src/activitypub/apattachment.h8
-rw-r--r--src/activitypub/fields.h8
2 files changed, 9 insertions, 7 deletions
diff --git a/src/activitypub/apattachment.h b/src/activitypub/apattachment.h
index c8cdda0..ff40dc3 100644
--- a/src/activitypub/apattachment.h
+++ b/src/activitypub/apattachment.h
@@ -1,16 +1,10 @@
#pragma once
#include "apbase.h"
+#include "fields.h"
#include <array>
#include <vector>
-struct APAttachmentFields {
- QString path;
- QString filename; // "nicer" filename
- QString media_type;
- QString name;
-};
-
class APAttachment : APBase {
public:
APAttachment();
diff --git a/src/activitypub/fields.h b/src/activitypub/fields.h
index 25ed246..59d3858 100644
--- a/src/activitypub/fields.h
+++ b/src/activitypub/fields.h
@@ -2,6 +2,7 @@
#include "src/types.h"
#include <QString>
+#include <QStringList>
#include <vector>
enum struct APObjectType {NOTE, QUESTION, UNKNOWN};
@@ -20,6 +21,13 @@ struct APQuestionFields {
std::vector<Option> poll_options;
};
+struct APAttachmentFields {
+ QString path;
+ QString filename; // "nicer" filename
+ QString media_type;
+ QString name;
+};
+
struct APObjectFields {
QStringList to_actors; // Start APObject
QStringList cc_actors;