aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub/apreblog.cpp
blob: a6c6c3b6a38b945269a9d144c2804d502eb111ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "apreblog.h"

APReblog::APReblog(APReblogFields fields) {
    object.load_object_url(fields.object); // might have to be fixed
    visibility = fields.visibility;
}

QString APReblog::get_html_render(HtmlRenderDetails info) {
    QString text = "Reblog of this object: <a href=\"{{url}}\">{{url}}</a><hr/>";
    text.replace("{{url}}", object.get_object_url());
    text.append(object.get_html_render(info));
    return text;
}