Beispiel #1
0
 def to_update_activity(self, user):
     ''' wrapper for Updates to an activity '''
     activity_id = '%s#update/%s' % (self.remote_id, uuid4())
     return activitypub.Update(
         id=activity_id,
         actor=user.remote_id,
         to=['https://www.w3.org/ns/activitystreams#Public'],
         object=self.to_activity()).serialize()
Beispiel #2
0
 def to_update_activity(self, user):
     """wrapper for Updates to an activity"""
     activity_id = "%s#update/%s" % (self.remote_id, uuid4())
     return activitypub.Update(
         id=activity_id,
         actor=user.remote_id,
         to=["https://www.w3.org/ns/activitystreams#Public"],
         object=self,
     ).serialize()