#2426 refactor to use predetermined referer

This commit is contained in:
Toks
2015-07-05 11:02:01 -04:00
parent 50f28e780a
commit 0a5f1b53ba
5 changed files with 51 additions and 20 deletions

View File

@@ -74,6 +74,11 @@ module Sources
[image_url]
end
# Should be set to a url for sites that prevent hotlinking, or left nil for sites that don't.
def fake_referer
nil
end
protected
def agent
raise NotImplementedError