You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
247 B

  1. class FeedManager
  2. MAX_ITEMS = 800
  3. def self.key(type, id)
  4. "feed:#{type}:#{id}"
  5. end
  6. def self.filter_status?(status, follower)
  7. (status.reply? && !(follower.id = replied_to_user.id || follower.following?(replied_to_user)))
  8. end
  9. end