aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub/apreblog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/activitypub/apreblog.h')
-rw-r--r--src/activitypub/apreblog.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/activitypub/apreblog.h b/src/activitypub/apreblog.h
new file mode 100644
index 0000000..cc340b8
--- /dev/null
+++ b/src/activitypub/apreblog.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include "apobject.h"
+#include "apobject.h"
+#include "src/types.h"
+#include <vector>
+
+struct APReblogFields {
+ QString object; // the object's URL that was reblogged
+ StatusType visibility; // you can have non-public visibility of reblogs on Mastodon
+};
+
+// APReblog represents an ActivityPub Announce activity, which is a kind of object in a sense. This class is really used just for light bookeeping.
+// The visibility is just the visibility (to & cc) of the APActivity it came from.
+class APReblog : public APObject {
+public:
+ APReblog();
+ // A post that will be built from strings
+ APReblog(APReblogFields fields);
+ ~APReblog() {};
+
+ QString get_html_render(HtmlRenderDetails render_info);
+
+protected:
+ APObject object; // the object that was reblogged (impossible to be an APReblog)
+ StatusType visibility;
+};