From 071f64d317408b556c4f85e2f2abd80fe815de8b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 19 Mar 2016 00:16:04 +0100 Subject: Fix #13, Atom feeds now contain formatted post content --- app/helpers/stream_entries_helper.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'app/helpers/stream_entries_helper.rb') diff --git a/app/helpers/stream_entries_helper.rb b/app/helpers/stream_entries_helper.rb index 5adb09f77..b044e8a61 100644 --- a/app/helpers/stream_entries_helper.rb +++ b/app/helpers/stream_entries_helper.rb @@ -20,17 +20,6 @@ module StreamEntriesHelper date < 5.days.ago ? date.strftime("%d.%m.%Y") : "#{time_ago_in_words(date)} ago" end - def linkify(status) - mention_hash = {} - status.mentions.each { |m| mention_hash[m.acct] = m } - coder = HTMLEntities.new - - auto_link(coder.encode(status.text), link: :urls, html: { rel: 'nofollow noopener' }).gsub(Account::MENTION_RE) do |m| - account = mention_hash[Account::MENTION_RE.match(m)[1]] - "#{m.split('@').first}@#{account.acct}" - end.html_safe - end - def reblogged_by_me_class(status) user_signed_in? && current_user.account.reblogged?(status) ? 'reblogged' : '' end -- cgit