public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Search Repo:
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
quick fix for in_reply_to field on twitter plugin
eldiablo (author)
Fri Apr 25 18:22:31 -0700 2008
commit  7178168c37f4185eb9f33df859c20fc69e92381b
tree    844f52e0dbc6c784e3b20c888bfd47195e46e6c0
parent  d243741e2970883f36c1cf7b871a00a727df0b5b
...
29
30
31
32
 
33
34
35
...
29
30
31
 
32
33
34
35
0
@@ -29,7 +29,7 @@
0
           tweet.twitter_id = (status/"id").first.innerText
0
           tweet.text = (status/"text").first.innerText
0
           tweet.source = (status/"source").first.innerText
0
- tweet.in_reply_to = (status/"in_reply_to").first.innerText == "" ? nil : (status/"in_reply_to").first.innerText
0
+ tweet.in_reply_to = ((status/"in_reply_to").first.nil? || (status/"in_reply_to").first.innerText == "") ? nil : (status/"in_reply_to").first.innerText
0
           tweet.username = (status/"user"/"screen_name").first.innerText
0
           tweet.published_at = DateTime.parse((status/"created_at").first.innerText)
0
           tweet.created_at = DateTime.now

Comments

    No one has commented yet.