松尾です。

公式RTに関して同じtweetが複数表示される事例があるようです。

naota344>> @02/03 18:18:37
 やっぱ公式RTが出てくると、そのまわりが時空がゆがむ、じゃなくって同じ tweet が
 繰り返される。

現在の twittering-render-timeline の実装では
twittering-timeline-data に同じIDのものが連続しているとそれら
全てが表示されてしまいます。
本来なら twittering-timeline-data の方で重複を省くべきと思う
のですが twittering-render-timeline の方をちょっと修正する
だけでも対処できますのでそのためのパッチを書いてみました。

tweet 挿入時に、その直前に挿入した tweet もIDの比較対象にして
重複表示しないようにしています。
(ID重複がない場合はその分無駄な処理を行うことになりますが)

手元では問題の症状自体を確認できていないのですが、問題の
起きている方は添付のパッチで解決するかどうか試してもらえ
ますでしょうか。

---
松尾 直志 <t...@mymail.twin.jp>
diff -r dcc04eee46d1 twittering-mode.el
--- a/twittering-mode.el        Mon Feb 01 00:45:29 2010 +0900
+++ b/twittering-mode.el        Wed Feb 03 19:24:16 2010 +0900
@@ -1926,9 +1926,9 @@
                   ;; which status is pointed by each marker.
                   (insert-before-markers formatted-status separator)
                   ;; Now, `pos' points the head of the status.
-                  ;; It must be moved to the current point
-                  ;; in order to skip the status inserted just now.
-                  (setq pos (point))))))
+                  ;; Keep this position in order to avoid inserting
+                  ;; multiple tweets with the same IDs.
+                  ))))
           twittering-timeline-data)))
       (if (and twittering-image-stack window-system)
          (clear-image-cache))
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
twmode-users mailing list
twmode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/twmode-users

メールによる返信