mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-27 09:20:38 +00:00
2248206a66
activitypub.BookData includes fields for 'files' and 'fileLinks'. This is a problem because BookData is inherited by Book and Author, neither of which have 'files' as a field in the main model. Additionally, Author doesn't have a value for 'file_links'. When serializing to JSON, BookData therefore throws 'TypeError: Object of type _MISSING_TYPE is not JSON serializable' This fixes the problem by removing links and moving fileLinks to activitypub.Book. |
||
---|---|---|
.. | ||
__init__.py | ||
base_activity.py | ||
book.py | ||
image.py | ||
note.py | ||
ordered_collection.py | ||
person.py | ||
response.py | ||
verbs.py |