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

19 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>
<atom:link href="{{ url('room_namespace', { namespace : request.get('namespace') }) }}" rel="self" type="application/rss+xml"></atom:link>
2023-12-06 19:26:27 +00:00
<title>{{ request.get('namespace') | keva_namespace_value }} - {{ 'KevaChat' | trans }}</title>
2023-12-06 06:43:30 +00:00
<link>{{ url('room_namespace', { namespace : request.get('namespace') }) }}</link>
{% for post in feed %}
<item>
2023-12-06 08:02:02 +00:00
<title>@{{ post.user }}</title>
<author>@{{ post.user }}</author>
2023-12-06 06:43:30 +00:00
<pubDate>{{ post.timestamp | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('room_namespace', { namespace : request.get('namespace') }) }}#{{ post.id }}</guid>
<link>{{ url('room_namespace', { namespace : request.get('namespace') }) }}#{{ post.id }}</link>
2023-12-07 17:23:09 +00:00
<description>{{ post.message }}</description>
2023-12-06 06:43:30 +00:00
</item>
{% endfor %}
</channel>
</rss>