mirror of https://gitlab.com/bashrc2/epicyon
Ensure that license and creator text is not too long
parent
dcb5fcf4c0
commit
f0354a101a
|
@ -1240,12 +1240,17 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
if not is_filtered(base_dir, nickname, domain,
|
if not is_filtered(base_dir, nickname, domain,
|
||||||
attach['schema:license'],
|
attach['schema:license'],
|
||||||
system_language):
|
system_language):
|
||||||
|
if '://' not in attach['schema:license']:
|
||||||
|
if len(attach['schema:license']) < 60:
|
||||||
|
media_license = attach['schema:license']
|
||||||
|
else:
|
||||||
media_license = attach['schema:license']
|
media_license = attach['schema:license']
|
||||||
media_creator = ''
|
media_creator = ''
|
||||||
if attach.get('schema:creator'):
|
if attach.get('schema:creator'):
|
||||||
if not is_filtered(base_dir, nickname, domain,
|
if not is_filtered(base_dir, nickname, domain,
|
||||||
attach['schema:creator'],
|
attach['schema:creator'],
|
||||||
system_language):
|
system_language):
|
||||||
|
if len(attach['schema:creator']) < 60:
|
||||||
media_creator = attach['schema:creator']
|
media_creator = attach['schema:creator']
|
||||||
|
|
||||||
media_type = attach['mediaType']
|
media_type = attach['mediaType']
|
||||||
|
|
Loading…
Reference in New Issue