Twitter cards don't support relative urls

better-twitter
eric 2019-08-16 14:35:22 -04:00
parent 89c8581716
commit 7ab5206973
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class BaseFormatter (object):
# HACK for https://
if file_.url.startswith ('http://'):
file_.url = file_.url[5:] # to //
file_.url = 'https' + file_.url[4:]
file_.dropbox_url = None
# file_.dropbox_filename = None