diff options
author | Toshiaki Asai <qtoship@gmail.com> | 2013-02-28 21:09:21 +0900 |
---|---|---|
committer | Toshiaki Asai <qtoship@gmail.com> | 2013-02-28 23:29:47 +0900 |
commit | 9da9e70f328a018c38f495c5a20467148e74e145 (patch) | |
tree | d91ad7a0269e9b359814ddf20def9ada4dc65785 /core/service.rb | |
parent | dc5c3cf1316505dd014ffe94b48517e993e1624d (diff) | |
download | mikutter-9da9e70f328a018c38f495c5a20467148e74e145.tar.gz |
MikuTwitterができるだけTypedArrayを使って値を返すようにした
Diffstat (limited to 'core/service.rb')
-rw-r--r-- | core/service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/service.rb b/core/service.rb index 6a52f2d4..69ba9069 100644 --- a/core/service.rb +++ b/core/service.rb @@ -252,8 +252,8 @@ class Service front = id.to_a.slice(0, 100) remain = id.to_a.slice(100,id.size) messages = @post.scan(:user_lookup, :id => front.join(',')) - messages = [] if not messages.is_a? Array - messages.concat(findbyid(remain)) if remain and not remain.empty? + messages = Messages.new if not messages.is_a? Array + messages += findbyid(remain) if remain and not remain.empty? messages else @post.scan(@api, :id => id) end end end |