Skip to content

Commit

Permalink
Include retweet-count' and favorite-count' in a tweet alist.
Browse files Browse the repository at this point in the history
* twittering-mode.el: Include `retweet-count' and `favorite-count'
in an alist representing a tweet.
(twittering-extract-common-element-from-json): include
`retweet-count' and `favorite-count' in an alist representing a
tweet.
  • Loading branch information
cvmat committed Dec 8, 2013
1 parent 9641019 commit c909aa5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Expand Up @@ -7,6 +7,12 @@
(twittering-call-api-with-account-in-api1.1): use `recent' as the
`result_type' of search API.

* twittering-mode.el: Include `retweet-count' and `favorite-count'
in an alist representing a tweet.
(twittering-extract-common-element-from-json): include
`retweet-count' and `favorite-count' in an alist representing a
tweet.

2013-12-09 tomykaira <tomykaira@gmail.com>

* twittering-mode.el: Fix arguments of `twittering-http-post'.
Expand Down
5 changes: 4 additions & 1 deletion twittering-mode.el
Expand Up @@ -7008,7 +7008,10 @@ to JSON objects from ordinary timeline and search timeline."
. ,(cdr (assq 'display_url entry)))
(expanded-url
. ,(cdr (assq 'expanded_url entry))))))
urls))))))
urls)))
(retweet-count . ,(cdr (assq 'retweet_count json-object)))
(favorite-count . ,(cdr (assq 'favorite_count json-object)))
)))

(defun twittering-json-object-to-a-status (json-object)
"Convert JSON-OBJECT representing a tweet into an alist representation.
Expand Down

0 comments on commit c909aa5

Please sign in to comment.