blob: 8fe64307a39db7766d9b77c011820a51a1130163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include "apobject.h"
#include "apbase.h"
#include "fields.h"
#include <QMetaType>
#include <memory>
#include <vector>
// APPost represents an ActivityPub Note Object
class APPost : public APObject {
public:
APPost();
// A post that will be built from strings, including attachments
APPost(APObjectFields fields);
~APPost() {};
QString get_html_render(HtmlRenderDetails render_info);
protected:
bool is_sensitive = false;
QString summary; // content warning
QStringList languages;
QString content;
QString get_html_status_languages();
};
typedef std::shared_ptr<APPost> APPostPtr;
Q_DECLARE_METATYPE(APPostPtr);
|