コード例 #1
0
 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()
コード例 #2
0
 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()