Skip to content

Commit

Permalink
Duplicated tweets in one retrieval are correctly excluded.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-cache-status-datum): register IDs
with ID-TABLE when a tweet is added to DATA-VAR. This prevents
duplicated tweets in one retrieval from being registered.
  • Loading branch information
cvmat committed Feb 4, 2010
1 parent 9f4f1b8 commit a4366d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -14,6 +14,10 @@
* twittering-mode.el (twittering-status-to-status-datum): fix
lacked binding of `source-id' and `source-created-at'.

* twittering-mode.el (twittering-cache-status-datum): register IDs
with ID-TABLE when a tweet is added to DATA-VAR. This prevents
duplicated tweets in one retrieval from being registered.

2010-02-03 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-http-get-default-sentinel): sort
Expand Down
3 changes: 3 additions & 0 deletions twittering-mode.el
Expand Up @@ -1673,6 +1673,9 @@ If ID of STATUS-DATUM is already in ID-TABLE, return nil. If not, return t."
status-datum))
(cdr (assq 'text status-datum))))
(set data-var (cons status-datum (symbol-value data-var)))
(puthash id t id-table)
(when source-id
(puthash source-id t id-table))
t)))

(defun twittering-status-to-status-datum (status)
Expand Down

0 comments on commit a4366d6

Please sign in to comment.