diff --git a/app/models/post.rb b/app/models/post.rb index fe4ddf6cb03f8df084ba644fcc0c2461544ffc9b..071d27b64168d4b8db44fd82ca61c4c6cfc8cc35 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -54,14 +54,6 @@ class Post < ActiveRecord::Base joins(:likes).where(:likes => {:author_id => person.id}) } - def self.visible_from_author(author, current_user=nil) - if current_user.present? - current_user.posts_from(author) - else - author.posts.all_public - end - end - def post_type self.class.name end diff --git a/app/models/status_message.rb b/app/models/status_message.rb index 78d8a4b098d9fdebfd35ff08ebf7ef6d5dc9488c..b2be566e18e2cce0cdaa26a22e5284f841762927 100644 --- a/app/models/status_message.rb +++ b/app/models/status_message.rb @@ -149,10 +149,5 @@ class StatusMessage < Post def self.tag_stream(tag_ids) joins(:taggings).where('taggings.tag_id IN (?)', tag_ids) end - - def after_parse - # Make sure already received photos don't invalidate the model - self.photos = photos.select(&:valid?) - end end