From aacab099099f7267e931f0ddc4e7315d73cb0ce7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 23 Jan 2023 14:50:09 +0000 Subject: [PATCH] Check that the license is a link --- webapp_utils.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webapp_utils.py b/webapp_utils.py index 93d10c4c8..e5446dc93 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -1362,7 +1362,13 @@ def get_post_attachments_as_html(base_dir: str, attachment_str += '
' license_str = '' if media_license: - license_str += '©' + if '://' in media_license: + license_str += \ + '©' + else: + license_str += media_license if media_creator: if license_str: license_str += ' '