Commit c426a571 authored by Jacob Schatz's avatar Jacob Schatz

Fix the situation where the user has named themselves "me"

Stopped looking for existing user since remove functionality is fixed.
parent c298068c
......@@ -59,7 +59,6 @@ class @AwardsHandler
removeMeFromAuthorList: (emoji) ->
award_block = @findEmojiIcon(emoji).parent()
authors = award_block.attr("data-original-title").split(", ")
if authors.indexOf("me") != -1
authors.splice(authors.indexOf("me"),1)
award_block.closest(".award").attr("data-original-title", authors.join(", "))
@resetTooltip(award_block)
......@@ -70,7 +69,6 @@ class @AwardsHandler
authors = []
if origTitle
authors = origTitle.split(', ')
if authors.indexOf("me") == -1
authors.push("me")
award_block.attr("title", authors.join(", "))
@resetTooltip(award_block)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment