webapp/templates/default/room/index.rss.twig

18 lines
1.1 KiB
Twig
Raw Normal View History

2023-12-06 06:43:30 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
2023-12-10 09:08:27 +00:00
<atom:link href="{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : 'latest' }) }}" rel="self" type="application/rss+xml"></atom:link>
<title>{{ request.get('namespace') | keva_namespace_value }} - {{ app.name }}</title>
2023-12-10 09:08:27 +00:00
<link>{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : 'latest' }) }}</link>
2023-12-06 06:43:30 +00:00
{% for post in feed %}
<item>
2024-02-21 07:54:15 +00:00
<title>{{ post.txid }}</title>
2024-02-20 19:10:30 +00:00
<author>{{ post.user }}</author>
2023-12-08 23:48:49 +00:00
<pubDate>{{ post.time | date('D, d M Y h:i:s O') }}</pubDate>
2024-02-21 07:54:15 +00:00
<guid>{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : post.txid }) }}</guid>
<link>{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : post.txid }) }}</link>
2023-12-08 23:48:49 +00:00
<description>{{ post.message | striptags | markdown_to_html | striptags | trim }}</description>
2023-12-06 06:43:30 +00:00
</item>
{% endfor %}
</channel>
2023-12-08 23:48:49 +00:00
</rss>