プロジェクト

全般

プロフィール

バグ #587 » direct_message.rb.diff

ぬるぽ へっど, 2013-04-27 02:56

差分を表示:

direct_message.rb 2013-04-27 02:41:29.682556622 +0900
43 43
        result = []
44 44
        @dm_lock.synchronize do
45 45
          dms.sort_by{ |s| Time.parse(s[:created_at]) rescue Time.now }.each { |dm|
46
            if add_dm(dm, dm[:sender]) and add_dm(dm, dm[:recipient])
46
            if add_dm(dm, dm[:sender]) and (dm[:sender] == dm[:recipient] || add_dm(dm, dm[:recipient]))
47 47
              result << dm end } end
48 48
        [service, result]
49 49
      else
    (1-1/1)