MS so close to subscribing to tantek
This commit is contained in:
parent
7ba85e0d4e
commit
1f414c9347
2 changed files with 6 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
%li.message{:id => post.id}
|
||||
|
||||
= image_tag post.author.avatar_thumbnail, :class => "person_picture"
|
||||
= image_tag post.author.avatar_thumbnail, :class => "person_picture" if !post.author.author.avatar_thumnail.nil?
|
||||
|
||||
%span.from
|
||||
= link_to post.author.username, author_path(post.author)
|
||||
|
|
|
|||
|
|
@ -44,7 +44,11 @@ module Diaspora
|
|||
end
|
||||
|
||||
def self.parse_avatar_thumbnail(doc)
|
||||
begin
|
||||
doc.xpath('//logo').first.inner_html
|
||||
rescue
|
||||
puts "user has no thumbnail"
|
||||
end
|
||||
end
|
||||
|
||||
def self.parse_username(doc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue