1
0
Fork 0

Merge pull request #293 from mouse-reeve/tagging

fixes tagging
This commit is contained in:
Mouse Reeve 2020-11-06 15:46:45 -08:00 committed by GitHub
commit ce4c02936d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 28 deletions

View file

@ -35,8 +35,8 @@ class Tag(OrderedCollectionMixin, BookWyrmModel):
return activitypub.Add(
id='%s#add' % self.remote_id,
actor=user.remote_id,
object=self.book.to_activity(),
target=self.to_activity(),
object=self.book.local_id,
target=self.remote_id,
).serialize()
def to_remove_activity(self, user):