Move the @ inside the mention links

This commit is contained in:
Raphael Sofaer 2011-02-24 15:52:47 -08:00
parent 40dea1f625
commit c030e8b21e

View file

@ -47,7 +47,7 @@ class StatusMessage < Post
if opts[:plain_text]
person ? ERB::Util.h(person.name) : ERB::Util.h(inner_captures.first)
else
person ? "@<a href=\"/people/#{person.id}\" class=\"mention\">#{ERB::Util.h(person.name)}</a>" : ERB::Util.h(inner_captures.first)
person ? "<a href=\"/people/#{person.id}\" class=\"mention\">@#{ERB::Util.h(person.name)}</a>" : ERB::Util.h(inner_captures.first)
end
end
form_message