Permalink
Browse files

fix user name

  • Loading branch information...
1 parent b451b51 commit 6ad5238aaaabf97445d6afa7adb50e1c0170fcd0 @mislav committed Jul 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.rb
View
@@ -404,7 +404,7 @@ def last_modified_from_photos(photos)
%h2= photo.caption.text
.author
by
- - user_name = photo.user.full_name || photo.user.username
+ - user_name = photo.user.full_name.presence || photo.user.username
- if photo.user.id
%a{ href: "/users/#{photo.user.id}" }&= user_name
- else

0 comments on commit 6ad5238

Please sign in to comment.