def to_activitystream(self):
json = {
"type": "Person",
"id": self.uris.id,
"name": self.name,
"preferredUsername": self.username,
}
if not self.remote:
json.update({
"following": self.uris.following,
"followers": self.uris.followers,
"outbox": self.uris.outbox,
"inbox": self.uris.inbox,
})
return json
评论列表
文章目录