app/models/user.rb
# Used to show the limited feed size in Profile
Used to show the limited feed size in Profile
Used to show the limited feed size in Profile
def mini_feed
    len = activities.length
    if len < FEED_SIZE
      global = Activity.global_feed[0...(Activity::GLOBAL_FEED_SIZE-len)]
      (activities + global).uniq.sort_by { |a| a.created_at }.reverse
    else
      some_activities
    end
  end
def mini_feed len = activities . length if len < FEED_SIZE global = Activity . global_feed [ 0 ... ( Activity :: GLOBAL_FEED_SIZE - len ) ] ( activities + global ) . uniq . sort_by { | a | a . created_at } . reverse else some_activities end end
Used to show the limited feed size in Profile
Used to show the limited feed size in Profile
# Mix in some global activities for smaller feeds.