Skip to content

Commit

Permalink
BlogFetching: remove images
Browse files Browse the repository at this point in the history
  • Loading branch information
Rio517 committed Jun 6, 2016
1 parent 115150e commit bed99db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/blog_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def self.fetch_feed!(param)
# TODO: small bug here. If nothign is returned, we set an empty key
feed.slice!('var tumblr_api_read = ')
feed.slice!(/\;\z/)
feed.slice!(/<img[^>]+\>/i)
end
redis.set(key(param), feed)
redis.expire(key(param), EXPIRE_SECONDS)
Expand Down

0 comments on commit bed99db

Please sign in to comment.