Fix #3385: Bookmarklet sets wrong source for Tumblr posts
Due to missing || operators, for Pawoo/Tumblr/Artstation uploads the source wasn't changed from the direct image URL to the html page URL after upload.
This commit is contained in:
@@ -125,9 +125,9 @@ module Downloads
|
|||||||
|
|
||||||
def set_source_to_referer(src, referer)
|
def set_source_to_referer(src, referer)
|
||||||
if Sources::Strategies::Nijie.url_match?(src) ||
|
if Sources::Strategies::Nijie.url_match?(src) ||
|
||||||
Sources::Strategies::Twitter.url_match?(src) || Sources::Strategies::Twitter.url_match?(referer)
|
Sources::Strategies::Twitter.url_match?(src) || Sources::Strategies::Twitter.url_match?(referer) ||
|
||||||
Sources::Strategies::Pawoo.url_match?(src) ||
|
Sources::Strategies::Pawoo.url_match?(src) ||
|
||||||
Sources::Strategies::Tumblr.url_match?(src) || Sources::Strategies::Tumblr.url_match?(referer)
|
Sources::Strategies::Tumblr.url_match?(src) || Sources::Strategies::Tumblr.url_match?(referer) ||
|
||||||
Sources::Strategies::ArtStation.url_match?(src) || Sources::Strategies::ArtStation.url_match?(referer)
|
Sources::Strategies::ArtStation.url_match?(src) || Sources::Strategies::ArtStation.url_match?(referer)
|
||||||
strategy = Sources::Site.new(src, :referer_url => referer)
|
strategy = Sources::Site.new(src, :referer_url => referer)
|
||||||
strategy.referer_url
|
strategy.referer_url
|
||||||
|
|||||||
Reference in New Issue
Block a user