Remove thumb_url in history attachment freeze data

remotes/origin/4.0rc
Álex Hermida 2018-09-19 11:15:59 +02:00 committed by Miguel Gonzalez
parent ef8f44e434
commit d55ee21e8e
1 changed files with 2 additions and 2 deletions

View File

@ -198,13 +198,13 @@ def _generic_extract(obj:object, fields:list, default=None) -> dict:
@as_tuple
def extract_attachments(obj) -> list:
for attach in obj.attachments.all():
thumb_url = get_timeline_image_thumbnail_url(attach)
# Force the creation of a thumbnail for the timeline
get_timeline_image_thumbnail_url(attach)
yield {"id": attach.id,
"filename": os.path.basename(attach.attached_file.name),
"url": attach.attached_file.url,
"attached_file": str(attach.attached_file),
"thumb_url": thumb_url,
"is_deprecated": attach.is_deprecated,
"description": attach.description,
"order": attach.order}