aboutsummaryrefslogtreecommitdiffstats
path: root/core/service.rb
diff options
context:
space:
mode:
authorToshiaki Asai <qtoship@gmail.com>2013-02-28 21:09:21 +0900
committerToshiaki Asai <qtoship@gmail.com>2013-02-28 23:29:47 +0900
commit9da9e70f328a018c38f495c5a20467148e74e145 (patch)
treed91ad7a0269e9b359814ddf20def9ada4dc65785 /core/service.rb
parentdc5c3cf1316505dd014ffe94b48517e993e1624d (diff)
downloadmikutter-9da9e70f328a018c38f495c5a20467148e74e145.tar.gz
MikuTwitterができるだけTypedArrayを使って値を返すようにした
Diffstat (limited to 'core/service.rb')
-rw-r--r--core/service.rb4
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