summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-01-16 18:06:09 +0100
committeremkael <emkael@tlen.pl>2017-01-16 18:06:09 +0100
commitbcc5a4c29ec9178d7515c8b29d186f31bac4065b (patch)
tree9124ab2ffff01c1fa083038b8f0c26b95e3c6730 /templates
parent68f5ac77ee0ca7788c7c48681ad2067de2af427b (diff)
* cosmetic changes to the feed standard layout
Diffstat (limited to 'templates')
-rw-r--r--templates/atom.tpl4
-rw-r--r--templates/rss.tpl6
2 files changed, 4 insertions, 6 deletions
diff --git a/templates/atom.tpl b/templates/atom.tpl
index e7e28f5..df4a762 100644
--- a/templates/atom.tpl
+++ b/templates/atom.tpl
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- <title>{$user}'s timeline</title>
+ <title>{$feedTitle}</title>
<link href="https://twitter.com/{$user}" />
- <id>http://emkael.info/tulz/twitterRSS/{$user}</id>
+ <id>{$feedID}</id>
<updated>{$cacheTime|date_format:"c"}</updated>
{foreach from=$content item=item}
<entry>
diff --git a/templates/rss.tpl b/templates/rss.tpl
index f95a462..03ea30b 100644
--- a/templates/rss.tpl
+++ b/templates/rss.tpl
@@ -1,16 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
- <title>{$user}'s timeline</title>
+ <title>{$feedTitle}</title>
<link>https://twitter.com/{$user}</link>
<lastBuildDate>{$cacheTime|date_format:"D, d M Y H:i:s O"}</lastBuildDate>
{foreach from=$content item=item}
<item>
<title>{$item->text|escape}</title>
<link>https://twitter.com/{$user}/status/{$item->id_str}</link>
- {if isset($item->user)}
- <guid>http://emkael.info/tulz/twitterRSS/{$item->user->id_str}/{$item->id_str}</guid>
- {/if}
+ <guid>{$feedID}/{$item->id_str}</guid>
<description><![CDATA[ {$item->text|escape} ]]></description>
<pubDate>{$item->created_at|date_format:"D, d M Y H:i:s O"}</pubDate>
</item>