summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-01-16 22:04:21 +0100
committeremkael <emkael@tlen.pl>2017-01-16 22:04:21 +0100
commitf7b2bfae9778af2c99e0c7fe7b2634e0f4f0973f (patch)
tree0258b0bd8b157a77a6135a30ee46a4d41975658f /templates
parentbcc5a4c29ec9178d7515c8b29d186f31bac4065b (diff)
* mapping twitter items to universal objects
Diffstat (limited to 'templates')
-rw-r--r--templates/atom.tpl14
-rw-r--r--templates/rss.tpl10
2 files changed, 12 insertions, 12 deletions
diff --git a/templates/atom.tpl b/templates/atom.tpl
index df4a762..ea8f357 100644
--- a/templates/atom.tpl
+++ b/templates/atom.tpl
@@ -6,14 +6,14 @@
<updated>{$cacheTime|date_format:"c"}</updated>
{foreach from=$content item=item}
<entry>
- <title>{$item->text|escape}</title>
- <link href="https://twitter.com/{$user}/status/{$item->id_str}" />
- <id>http://emkael.info/tulz/twitterRSS/{$item->user->id_str}/{$item->id_str}</id>
- <updated>{$item->created_at|date_format:"c"}</updated>
- <summary><![CDATA[ {$item->text|escape} ]]></summary>
- {if isset($item->user)}
+ <title>{$item->Title|escape}</title>
+ <link href="{$item->Link}" />
+ <id>{$feedID}/{$item->ID}</id>
+ <updated>{$item->Time|date_format:"c"}</updated>
+ <summary><![CDATA[ {$item->Text|escape} ]]></summary>
+ {if isset($item->Author)}
<author>
- <name>{$item->user->screen_name}</name>
+ <name>{$item->Author}</name>
</author>
{/if}
</entry>
diff --git a/templates/rss.tpl b/templates/rss.tpl
index 03ea30b..a0be07e 100644
--- a/templates/rss.tpl
+++ b/templates/rss.tpl
@@ -6,11 +6,11 @@
<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>
- <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>
+ <title>{$item->Title|escape}</title>
+ <link>{$item->Link}</link>
+ <guid>{$feedID}/{$item->ID}</guid>
+ <description><![CDATA[ {$item->Text|escape} ]]></description>
+ <pubDate>{$item->Time|date_format:"D, d M Y H:i:s O"}</pubDate>
</item>
{/foreach}
</channel>