1
0
Fork 0

Use remote_id resolver to load books, user

This commit is contained in:
Mouse Reeve 2020-11-28 10:18:24 -08:00
parent 81bdd2b3f1
commit a93b5cf5bc
15 changed files with 115 additions and 93 deletions

View file

@ -80,12 +80,10 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
ActivityMapping(
'tag', 'mention_books',
lambda x: tag_formatter(x, 'title', 'Book'),
lambda x: [i for i in x if x.get('type') == 'Book']
),
ActivityMapping(
'tag', 'mention_users',
lambda x: tag_formatter(x, 'username', 'Mention'),
lambda x: [i for i in x if x.get('type') == 'Mention']
),
ActivityMapping(
'attachment', 'attachments',