From bffd46fea295f3acb06260458ba88e8cdf7e7fe1 Mon Sep 17 00:00:00 2001 From: Larissa Reis Date: Tue, 13 Nov 2012 12:23:36 -0200 Subject: [PATCH] Fixes encode error for article notification on wall --- app/views/profile/_create_article.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/profile/_create_article.rhtml b/app/views/profile/_create_article.rhtml index c955ac7..5e06034 100644 --- a/app/views/profile/_create_article.rhtml +++ b/app/views/profile/_create_article.rhtml @@ -9,7 +9,7 @@
<%= link_to(activity.params['name'], activity.params['url']) %>
- <%= image_tag(activity.params['first_image']) unless activity.params['first_image'].blank? %><%= strip_tags(truncate(activity.params['lead'], :length => 1000, :ommision => '...')).gsub(/(\xA0|\xC2|\s)+/, ' ').gsub(/^\s+/, '') %> <%= link_to(_('See more'), activity.params['url']) unless activity.get_lead.blank? %> + <%= image_tag(activity.params['first_image']) unless activity.params['first_image'].blank? %><%= strip_tags(truncate(activity.params['lead'], :length => 1000, :ommision => '...')).gsub(/(\xC2\xA0|\s)+/, ' ').gsub(/^\s+/, '') %> <%= link_to(_('See more'), activity.params['url']) unless activity.get_lead.blank? %>
<%= content_tag(:p, link_to(_('See complete forum'), activity.get_url), :class => 'see-forum') if activity.target.is_a?(Forum) %>

<%= time_ago_as_sentence(activity.created_at) %>

-- libgit2 0.21.2