From 2d140f2e972afce28eecd6e3375ba7777773f4ae Mon Sep 17 00:00:00 2001 From: Osma Ahvenlampi Date: Fri, 14 Jul 2023 22:52:04 +0300 Subject: [PATCH] remove duplicate attachment url check (#608) --- activities/models/post.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/activities/models/post.py b/activities/models/post.py index df85277..83c91c1 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -939,10 +939,6 @@ class Post(StatorModel): # These have no IDs, so we have to wipe them each time post.attachments.all().delete() for attachment in get_list(data, "attachment"): - if "url" not in attachment.keys(): - # sometimes attachments don't have URLs. Skip them. - print(f"no URL for {attachment} in {post}") - continue if "focalPoint" in attachment: try: focal_x, focal_y = attachment["focalPoint"]