diff --git a/app/views/walls/index.html.erb b/app/views/walls/index.html.erb index c1d4f56..84b84d7 100644 --- a/app/views/walls/index.html.erb +++ b/app/views/walls/index.html.erb @@ -19,7 +19,7 @@ <%= image_tag post.avatar %> <%= link_to post.username, user_path(post.user),class: 'username' %> <%= time_ago_in_words(post.created_at).capitalize %> Ago - <% if @post.user_id = current_user.id %> + <% if current_user and current_user.id == @post.user_id %>