From 8b2c05afc0a9f8ad7490fd46bb1c8249d03c2fb8 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 19 Feb 2009 15:24:17 +0000 Subject: 1) Rename the module media_rss to rss 2) Protect the fullsize image with a permission check 3) Added a content:encoded element to each item which allows the image to show up in the body of the feed. --- modules/rss/helpers/rss.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/rss/helpers/rss.php (limited to 'modules/rss/helpers/rss.php') diff --git a/modules/rss/helpers/rss.php b/modules/rss/helpers/rss.php new file mode 100644 index 00000000..728c2847 --- /dev/null +++ b/modules/rss/helpers/rss.php @@ -0,0 +1,30 @@ +is_album() ? $item->id : $item->parent_id; + return url::site("rss/albums/$id"); + } + + static function tag_feed($tag) { + return url::site("rss/tags/$tag->id}"); + } +} \ No newline at end of file -- cgit v1.2.3