X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f498a9287a25fc284ef0e1fd90ea8ca91e661183..4cce95ffe03658358a65b00b516af7eebe96e137:/app/views/user/diary.rhtml
diff --git a/app/views/user/diary.rhtml b/app/views/user/diary.rhtml
index abe896db9..106cfd73f 100644
--- a/app/views/user/diary.rhtml
+++ b/app/views/user/diary.rhtml
@@ -1,8 +1,8 @@
<%= @this_user.display_name %>'s diary
-<% if @this_user.id == @user.id %>
+<% if @user and @this_user.id == @user.id %>
<%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
<% end %>
recent posts:
-FIXME: geoRSS needed
+
<%= render :partial => 'diary_entry/diary_entry', :collection => @this_user.diary_entries %>