check for AS object in partial hack
This commit is contained in:
parent
5fdc0fb8d8
commit
6c31867345
3 changed files with 6 additions and 2 deletions
|
|
@ -107,5 +107,9 @@ class Post < ActiveRecord::Base
|
|||
Rails.logger.info("event=receive payload_type=#{self.class} update=true status=abort sender=#{self.diaspora_handle} reason='update not from post owner' existing_post=#{self.id}")
|
||||
end
|
||||
end
|
||||
|
||||
def activity_streams?
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
= person_link(post.author, :class => 'author')
|
||||
%time.time.timeago{:datetime => post.created_at, :integer => time_for_sort(post).to_i}
|
||||
|
||||
- if post.respond_to?(:activity_streams?)
|
||||
- if post.activity_streams?
|
||||
= image_tag post.image_url
|
||||
- else
|
||||
= render 'status_messages/status_message', :post => post, :photos => post.photos
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
.from
|
||||
= person_link(post.author)
|
||||
|
||||
- if post.respond_to?(:activity_streams?)
|
||||
- if post.activity_streams?
|
||||
= image_tag post.image_url
|
||||
- else
|
||||
= render 'status_messages/status_message', :post => post, :photos => post.photos
|
||||
|
|
|
|||
Loading…
Reference in a new issue