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, ).serialize()
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.to_activity(), ).serialize()