OSDN Git Service

時速カウントのバグ修正
authorkiri_feather <kiri_feather@users.sourceforge.jp>
Wed, 24 Feb 2010 09:54:37 +0000 (09:54 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:11:04 +0000 (23:11 +0900)
公式RTのfav状態をそのまま反映するよう変更

git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@108 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/StatusDictionary.vb
Tween/Twitter.vb

index 48c4936..67d96ad 100644 (file)
@@ -725,10 +725,11 @@ Public NotInheritable Class TabInformations
             If _addedIds Is Nothing Then _addedIds = New List(Of Long)
             If _notifyPosts Is Nothing Then _notifyPosts = New List(Of PostClass)
             Me.Distribute()    'タブに仮振分
-            _addCount += _addedIds.Count
+            Dim retCnt As Integer = _addedIds.Count
+            _addCount += retCnt
             _addedIds.Clear()
             _addedIds = Nothing     '後始末
-            Return _addCount     '件数
+            Return retCnt     '件数
         End SyncLock
     End Function
 
index 43b7f76..92994f0 100644 (file)
@@ -3272,7 +3272,8 @@ Public Module Twitter
                     'Reply先
                     Long.TryParse(xRentry.Item("in_reply_to_status_id").InnerText, post.InReplyToId)
                     post.InReplyToUser = xRentry.Item("in_reply_to_screen_name").InnerText
-                    post.IsFav = TabInformations.GetInstance.GetTabByType(TabUsageType.Favorites).Contains(post.RetweetedId)
+                    'post.IsFav = TabInformations.GetInstance.GetTabByType(TabUsageType.Favorites).Contains(post.RetweetedId)
+                    post.IsFav = Boolean.Parse(xentry.Item("favorited").InnerText)
 
                     '以下、ユーザー情報
                     Dim xRUentry As XmlElement = CType(xRentry.SelectSingleNode("./user"), XmlElement)