Receive and save incoming images
This commit is contained in:
parent
88e4705717
commit
ad7ce6595b
7 changed files with 62 additions and 29 deletions
|
@ -100,7 +100,9 @@ class Book(ActivitypubMixin, BookWyrmModel):
|
|||
ActivityMapping('editions', 'editions_path'),
|
||||
ActivityMapping(
|
||||
'attachment', 'cover',
|
||||
image_attachments_formatter
|
||||
# this expects an iterable and the field is just an image
|
||||
lambda x: image_attachments_formatter([x]),
|
||||
lambda x: activitypub.image_attachments_formatter(x)[0]
|
||||
),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue