FIX: 100% cpu while parsing feeds

This commit is contained in:
Sam 2014-07-02 13:53:04 +10:00
parent 700b3c010f
commit 198731de23
1 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,10 @@ module Jobs
class Feed
require 'simple-rss'
SimpleRSS.item_tags << SiteSetting.embed_username_key_from_feed.to_sym
if SiteSetting.embed_username_key_from_feed.present?
SimpleRSS.item_tags << SiteSetting.embed_username_key_from_feed.to_sym
end
def initialize
@feed_url = SiteSetting.feed_polling_url