Browse Source

update rss guid

main
ghost 11 months ago
parent
commit
082dbeec06
  1. 2
      templates/default/rss/online.xml.twig
  2. 2
      templates/default/rss/players.xml.twig

2
templates/default/rss/online.xml.twig

@ -7,7 +7,7 @@
{% for value in server.online %} {% for value in server.online %}
<item> <item>
<title>{{ 'Online changed!' | trans }}</title> <title>{{ 'Online changed!' | trans }}</title>
<guid>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'online' }) }}-{{ value.id }}</guid> <guid>{{ url('server_index', { crc32server : server.crc32server, guid: value.id, _fragment : 'online' }) }}</guid>
<link>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'online' }) }}</link> <link>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'online' }) }}</link>
<description> <description>
{{ 'Players' | trans }}: {{ value.players }} {{ 'Players' | trans }}: {{ value.players }}

2
templates/default/rss/players.xml.twig

@ -7,7 +7,7 @@
{% for player in server.players %} {% for player in server.players %}
<item> <item>
<title>{{ player.name }} {{ 'joined' | trans }} {{ app.name }}!</title> <title>{{ player.name }} {{ 'joined' | trans }} {{ app.name }}!</title>
<guid>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'players' }) }}-{{ value.id }}</guid> <guid>{{ url('server_index', { crc32server : server.crc32server, guid: value.id, _fragment : 'players' }) }}</guid>
<link>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'players' }) }}</link> <link>{{ url('server_index', { crc32server : server.crc32server, _fragment : 'players' }) }}</link>
<pubDate>{{ player.joined | date("D, d M Y h:i:s O") }}</pubDate> <pubDate>{{ player.joined | date("D, d M Y h:i:s O") }}</pubDate>
</item> </item>

Loading…
Cancel
Save