diff --git a/app/models/status_message.rb b/app/models/status_message.rb index 7b4004911..370244cc7 100644 --- a/app/models/status_message.rb +++ b/app/models/status_message.rb @@ -33,7 +33,9 @@ class StatusMessage < Post after_create :queue_gather_oembed_data, :if => :contains_oembed_url_in_text? #scopes - scope :where_person_is_mentioned, lambda{|person| joins(:mentions).where(:mentions => {:person_id => person.id})} + scope :where_person_is_mentioned, lambda do |person| + joins(:mentions).where(:mentions => {:person_id => person.id}) + end def self.user_tag_stream(user, tag_ids) owned_or_visible_by_user(user). diff --git a/lib/diaspora/user/querying.rb b/lib/diaspora/user/querying.rb index 788dfb9a5..a93370f9d 100644 --- a/lib/diaspora/user/querying.rb +++ b/lib/diaspora/user/querying.rb @@ -30,7 +30,7 @@ module Diaspora #cache.ensure_populated!(opts) name = klass.to_s.downcase - shareable_ids = cache.send(name+"_ids", opts[:max_time], opts[:limit]) + shareable_ids = cache.send(name+"_ids", opts[:max_time], opts[:limit] +1) end if perform_db_query?(shareable_ids, cache, opts) diff --git a/lib/stream/multi.rb b/lib/stream/multi.rb index e6e5403d7..675d0389a 100644 --- a/lib/stream/multi.rb +++ b/lib/stream/multi.rb @@ -25,7 +25,7 @@ class Stream::Multi < Stream::Base # @return [Boolean] def ajax_stream? - false + false end #emits an enum of the groups which the post appeared