From 30fa49bc3fa4f94184d693932e838c0672f24a16 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 10 Mar 2025 20:13:40 +0000 Subject: add user rss/atom feeds --- templates/actor_rss.php | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 templates/actor_rss.php (limited to 'templates/actor_rss.php') diff --git a/templates/actor_rss.php b/templates/actor_rss.php new file mode 100644 index 0000000..03fc4f5 --- /dev/null +++ b/templates/actor_rss.php @@ -0,0 +1,46 @@ +'; +?> + + + + <?= htmlspecialchars($actor->displayName) ?> — <?= GlobalSettings::getInstance()->get('instance.name') ?> + + handle") ?> + displayName)) ?> + + + avatar)): ?> + + avatar ?> + + + + privacy->scope != NotePrivacyScope::PUBLIC || $note->inReplyTo != null) { + continue; + } + ?> + + handle/note/$note->id") ?> + id") ?> + <![CDATA[<?= htmlspecialchars(substr($note->plainContent, 0, 50), double_encode: false) ?>]]> + getBestContentAsHtml() ?>]]> + created->format(DateTime::RSS) ?> + attachments as $file): ?> + + + + + + \ No newline at end of file -- cgit v1.3