diff --git a/app/views/asciicasts/_preview.html.erb b/app/views/asciicasts/_preview.html.erb
index 2c437fe..4b9553c 100644
--- a/app/views/asciicasts/_preview.html.erb
+++ b/app/views/asciicasts/_preview.html.erb
@@ -3,8 +3,8 @@
<%= link_to asciicast_title(asciicast), asciicast %>
- <% if asciicast.user %>
- by <%= profile_link(asciicast) %>
+ <% if asciicast.user || asciicast.username %>
+ by <%= profile_link(asciicast) %>
<% end %>
<%= asciicast_time(asciicast) %>