mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 17:45:31 +00:00
implement activity RSS feed
This commit is contained in:
parent
60a5593446
commit
35b84546ff
58 changed files with 834 additions and 162 deletions
14
templates/default/activity/list.rss.twig
Normal file
14
templates/default/activity/list.rss.twig
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?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('torrent_recent') }}" rel="self" type="application/rss+xml"></atom:link>
|
||||
<title>{{ name }}</title>
|
||||
<link>{{ url('torrent_recent') }}</link>
|
||||
{% for activity in activities %}
|
||||
{{ render(controller(
|
||||
'App\\Controller\\ActivityController::event',
|
||||
{ user : session.user, activity : activity, format : 'rss' }
|
||||
)) }}
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
Loading…
Add table
Add a link
Reference in a new issue