Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix user name

  • Loading branch information...
commit 6ad5238aaaabf97445d6afa7adb50e1c0170fcd0 1 parent b451b51
Mislav Marohnić authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app.rb
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.