mizuhashi 最近的时间轴更新
mizuhashi

mizuhashi

V2EX 第 157347 号会员,加入于 2016-01-29 01:17:17 +08:00
根据 mizuhashi 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
mizuhashi 最近回复了
@mywaiting 确实有受 trpc 启发,开发体验估计还是 trpc 更好
@tonyrft 不太了解这两个,能做的事估计差不多,可能比较简洁
@andyJado https://ruby-china.org/topics/7894 zipper 為什麼是導數可以看看這個 個人認為比較好懂
https://github.com/mastodon/mastodon/issues/2668 這裏有一個相關的 issue 可以追追
@wgsgyes https://docs.joinmastodon.org/spec/webfinger/ 這裏有介紹 webfinger 的工作流,簡單的說就是當 mastodon 看到一個 [email protected] 的 id ,會訪問 xx.com/.well-known/webfinger 查詢這個 id ,然後返回中會有一個實際用於交互的 http 地址

要做重定向就是自己 host 這個請求,然後返回需要的地址。搜到的實現有 https://github.com/jelmer/redirect-webfinger ,這個 repo 幾天前就更新過應該還是能用的

如果 webfinger 的重定向不能用了,其實還有機會在 activitypub 協議層面動手腳,https://www.w3.org/TR/activitypub/#actor-objects AP 協議需要從 webfinger 的返回中解析出 inbox outbox ,然後可以想辦法返回別的 inbox 或者反代 inbox 的請求
其實是可以的,mastodon 用 webfinger 來把 @的 id 轉成實際的網址,你只需要在.well-known 裏指向別的實例就行,我試過交互都沒問題
关于   ·   帮助文档   ·   博客   ·   nftychat   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   实用小工具   ·   3664 人在线   最高记录 5556   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 05:28 · PVG 13:28 · LAX 22:28 · JFK 01:28
Developed with CodeLauncher
♥ Do have faith in what you're doing.