Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Workaround for strange issue with order of auto_link and gsub for twe…

…ets.
  • Loading branch information...
commit b6a846ee7ab663fd88a7b569a9c67bdfc7b41395 1 parent 3d4c90b
Matt Tarbit authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/partials/variants/status/_multiple.html.erb
View
2  app/views/partials/variants/status/_multiple.html.erb
@@ -1,6 +1,6 @@
-<%# entry.content = auto_link(entry.content, :urls) %>
<% entry.content.gsub!(/(\s|^)@(\w+)(?=\s|$)/) {|s| $1 + link_to("@#{$2}", "http://twitter.com/#{$2}") } %>
<% entry.content.gsub!(/(\s|^)(#\w+)(?=\s|$)/) {|s| $1 + link_to($2, "http://twitter.com/search?q=" + URI.escape($2)) } %>
+<% entry.content = auto_link(entry.content, :urls) %>
<% string_format = '<span class="lquote">&#8220;</span>%s<span class="rquote">&#8221;</span><span class="source">&mdash; %s</span>' %>
<div class="quote">
<div class="content"><%= highlight_html(markdown(string_format % [entry.content, link_to("@twitter", entry.status_url)]), @words) %></div>
Please sign in to comment.
Something went wrong with that request. Please try again.