-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support "file:///" as hyperlink #508
Changes from 1 commit
00fad85
bcddd2a
e8536ed
131650d
c25c0ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -999,7 +999,7 @@ def content_has_image(content): | |
|
||
@staticmethod | ||
def content_has_link(content): | ||
return 'http://' in content or 'https://' in content or '/user_uploads' in content | ||
return 'http://' in content or 'https://' in content or '/user_uploads' in content or 'file:///' in content | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm probably this |
||
|
||
def update_calculated_fields(self): | ||
# TODO: rendered_content could also be considered a calculated field | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,7 @@ def get_secret(key): | |
'REMOTE_POSTGRES_SSLMODE': '', | ||
'GOOGLE_CLIENT_ID': '', | ||
'DBX_APNS_CERT_FILE': None, | ||
'ENABLE_FILE_LINKS' : False, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should also add a patch to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool, looks like you did this one. |
||
} | ||
|
||
for setting_name, setting_val in DEFAULT_SETTINGS.iteritems(): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably should remove this whitespace change from the commit.