Skip to content

Commit

Permalink
Fixing so that we are not matching usernames.
Browse files Browse the repository at this point in the history
Usernames are not global identifiers. Author.id is sufficient for local
matching, though.
  • Loading branch information
wilkie committed Mar 24, 2011
1 parent 7e2241e commit 974171c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/_updates.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%a{:href => update.url}= update.created_at.ago_in_words
.reply
-# when @timeline is true, this is a list on the user's page
-unless current_user.nil? or (current_user.username == update.author.username)
-unless current_user.nil? or (current_user.author.id == update.author.id)
-unless @timeline.nil?
%a{:href => "javascript:share('#{update.author.username}', '#{update.id}')"} share
|
Expand Down

0 comments on commit 974171c

Please sign in to comment.