models.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:activitypub-example 作者: tOkeshu 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号