bookwyrm/bookwyrm/activitypub
Hugh Rundle 2248206a66
fix missing types in BookData file fields
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.
2023-11-08 18:30:49 +11:00
..
__init__.py Merge pull request #2970 from hughrun/move 2023-11-01 17:14:34 -07:00
base_activity.py Fix some annotations 2023-09-13 09:22:53 +02:00
book.py fix missing types in BookData file fields 2023-11-08 18:30:49 +11:00
image.py New version of black, new whitespace 2021-04-26 09:15:42 -07:00
note.py Enable finding existing hashtags case-insensitive 2023-03-07 13:16:45 +01:00
ordered_collection.py More pylint fixes 2021-06-18 14:29:24 -07:00
person.py Move MVP 2023-09-18 21:21:04 +10:00
response.py More pylint fixes 2021-06-18 14:29:24 -07:00
verbs.py cleanup 2023-09-25 15:29:01 +10:00