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 !
fixed an issue with the published date time, also setting the source to be 
"unknown" as the links for 3rd party sources that Twitter put in 
seemed to be breaking something, will look into that
eldiablo (author)
Sun Apr 20 14:46:34 -0700 2008
commit  de188b6212b3b1b4b4e66138aed55c448baa733a
tree    daed46b455547e83f446aa0430d044085b1f3569
parent  c9382e12611b71844a44fb0d5edaec83e3c9d99b
...
28
29
30
31
 
32
33
34
 
35
36
37
...
28
29
30
 
31
32
33
 
34
35
36
37
0
@@ -28,10 +28,10 @@ class TwitterSetting < DataMapper::Base
0
           tweet = Tweet.new
0
           tweet.twitter_id = (status/"id").first.innerText
0
           tweet.text = (status/"text").first.innerText
0
- tweet.source = (status/"source").first.innerText
0
+ tweet.source = "unknown" #(status/"source").first.innerText
0
           tweet.in_reply_to = (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 = (status/"created_at").first.innerText
0
+ tweet.published_at = DateTime.parse((status/"created_at").first.innerText)
0
           tweet.created_at = DateTime.now
0
           tweet.save
0
         end

Comments

    No one has commented yet.