MS so close to subscribing to tantek

This commit is contained in:
maxwell 2010-07-22 22:30:08 -07:00
parent 7ba85e0d4e
commit 1f414c9347
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,6 @@
%li.message{:id => post.id} %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 %span.from
= link_to post.author.username, author_path(post.author) = link_to post.author.username, author_path(post.author)

View file

@ -44,7 +44,11 @@ module Diaspora
end end
def self.parse_avatar_thumbnail(doc) def self.parse_avatar_thumbnail(doc)
doc.xpath('//logo').first.inner_html begin
doc.xpath('//logo').first.inner_html
rescue
puts "user has no thumbnail"
end
end end
def self.parse_username(doc) def self.parse_username(doc)