diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-24 17:56:44 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-24 17:56:44 +0200 |
commit | 49520d6e627e49a1f9f1b8cfa9b323450307fcc6 (patch) | |
tree | 49b3f093b1791bfa9434a4507d45944342d2dc43 /app/models | |
parent | 68c93f8b859617fb6bb2dc5cf6c5f9a6362bf6a8 (diff) |
Adding React.js, Redux, revamping dashboard
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/feed.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/feed.rb b/app/models/feed.rb index 1d6c2cfbf..e7574956e 100644 --- a/app/models/feed.rb +++ b/app/models/feed.rb @@ -4,7 +4,7 @@ class Feed @account = account end - def get(limit, max_id) + def get(limit, max_id = nil) max_id = '+inf' if max_id.nil? unhydrated = redis.zrevrangebyscore(key, "(#{max_id}", '-inf', limit: [0, limit]) status_map = Hash.new |