From 84377a3f363093210bf528aba29d5411e2559f26 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 8 Jan 2014 01:49:44 +0100 Subject: [PATCH] Commit "id" in feedify Has been there for a while, never bothered to commit. --- feedify.ini | 2 ++ feedify.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/feedify.ini b/feedify.ini index 667fc2a..840fb54 100644 --- a/feedify.ini +++ b/feedify.ini @@ -53,6 +53,7 @@ item_title= from.name {" > " to.data.name<", ">} item_link= actions.link[0] item_content= message story{"

"}{"
" name "
" description "
"}{"

– @ " place.name} item_time= created_time +item_id= id [facebook message/post] mode=json @@ -66,3 +67,4 @@ items= comments.data item_title= from.name item_content= message item_time= created_time +item_id= id diff --git a/feedify.py b/feedify.py index 839257a..dfbd59f 100644 --- a/feedify.py +++ b/feedify.py @@ -221,6 +221,9 @@ class Builder(object): feedItem['content'] = self.string(item, 'item_content') if 'item_time' in self.rule: feedItem['updated'] = self.string(item, 'item_time') + if 'item_id' in self.rule: + feedItem['id'] = self.string(item, 'item_id') + feedItem['isPermaLink'] = False self.feed.items.append(feedItem)