docbrown/app/services/feeds
Daniel Uber 349ba97a5e
Send custom user agent string when fetching feeds (#15942)
* Send custom user agent string when fetching feeds

dev.to blocks access to the feeds for user agent "Ruby"

Use "Forem Feeds Import" as alternate user agent when fetching feeds.

fixes https://github.com/forem/forem/issues/15939

* Update app/services/feeds/import.rb

Co-authored-by: Michael Kohl <citizen428@forem.com>

Co-authored-by: Michael Kohl <citizen428@forem.com>
2022-01-03 22:09:24 -06:00
..
assemble_article_markdown.rb Use the rss item's url when handling relative image links (#15497) 2021-12-09 14:08:54 -06:00
check_item_medium_reply.rb Refactor RssReader and Feeds::Import common parts: take 1 (#11412) 2020-11-18 14:17:53 +01:00
check_item_previously_imported.rb Refactor RssReader and Feeds::Import common parts: take 1 (#11412) 2020-11-18 14:17:53 +01:00
clean_html.rb Move HtmlCleaner from app/labor into service (#11609) 2020-11-27 08:21:57 +07:00
import.rb Send custom user agent string when fetching feeds (#15942) 2022-01-03 22:09:24 -06:00
validate_url.rb Add missing features to new feed importer (#11501) 2020-11-24 18:11:13 +01:00