Browse Source

fix guid

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

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

@ -7,7 +7,7 @@
{% for value in online %} {% for value in online %}
<item> <item>
<title>{{ 'Online changed!' | trans }}</title> <title>{{ 'Online changed!' | trans }}</title>
<guid>{{ value.id }}</guid> <guid>online#{{ value.id }}</guid>
<description> <description>
{{ 'Players' | trans }}: {{ value.players }} {{ 'Players' | trans }}: {{ value.players }}
{{ 'Bots' | trans }}: {{ value.bots }} {{ 'Bots' | trans }}: {{ value.bots }}

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

@ -6,8 +6,8 @@
<link>{{ url('main_index') }}</link> <link>{{ url('main_index') }}</link>
{% for player in players %} {% for player in players %}
<item> <item>
<title>{{ player.name }} {{ 'joined game!' | trans }}</title> <title>{{ player.name }} {{ 'joined' | trans }} {{ app.name }}!</title>
<guid>{{ player.id }}</guid> <guid>player#{{ player.id }}</guid>
<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>
{% endfor %} {% endfor %}

Loading…
Cancel
Save