mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
Fix new focalpoint parsing
This commit is contained in:
parent
bfe015ebd8
commit
9e2092c4b2
1 changed files with 1 additions and 1 deletions
|
@ -776,7 +776,7 @@ class Post(StatorModel):
|
|||
post.attachments.all().delete()
|
||||
for attachment in get_list(data, "attachment"):
|
||||
if "focalPoint" in attachment:
|
||||
focal_x, focal_y = attachment["focalPoint"]["@list"]
|
||||
focal_x, focal_y = attachment["focalPoint"]
|
||||
else:
|
||||
focal_x, focal_y = None, None
|
||||
post.attachments.create(
|
||||
|
|
Loading…
Reference in a new issue