Use remote_id resolver to load books, user
This commit is contained in:
parent
81bdd2b3f1
commit
a93b5cf5bc
15 changed files with 115 additions and 93 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue