Fixes serialization of delete activity
This commit is contained in:
parent
ae81d6cf71
commit
cb21099e0b
3 changed files with 2 additions and 12 deletions
|
@ -369,16 +369,6 @@ class OrderedCollectionMixin(OrderedCollectionPageMixin):
|
|||
if self.user.local and broadcast:
|
||||
self.broadcast(activity, self.user)
|
||||
|
||||
def to_delete_activity(self, user):
|
||||
"""notice of deletion"""
|
||||
return activitypub.Delete(
|
||||
id=self.remote_id + "/activity",
|
||||
actor=user.remote_id,
|
||||
to=["%s/followers" % user.remote_id],
|
||||
cc=["https://www.w3.org/ns/activitystreams#Public"],
|
||||
object=self.remote_id,
|
||||
).serialize()
|
||||
|
||||
|
||||
class CollectionItemMixin(ActivitypubMixin):
|
||||
"""for items that are part of an (Ordered)Collection"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue