New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pub-relay #6341
pub-relay #6341
Conversation
メモ リレーに配送するときは、HTTP-Signature と LD-Signature の2つの署名が付く で、それぞれ誰の鍵で署名するかと言うと、LD-Signatureはもちろん投稿者本人の鍵で署名する。 今Misskeyは、リレーする特殊ユーザーの鍵で署名する。 ほとんどの実装でどちらでも大丈夫だが、稀にHTTP-Signatureの署名者がLD-Signatureと違うと不具合が出ることがある。 |
This comment has been minimized.
This comment has been minimized.
nodeinfoは全然Relayと関係ないですね |
src/services/note/create.ts
Outdated
@@ -349,6 +350,10 @@ export default async (user: User, data: Option, silent = false) => new Promise<N | |||
dm.addFollowersRecipe(); | |||
} | |||
|
|||
if (['public', 'home'].includes(note.visibility)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Homeは送らなくて良さそう
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mastodon の未収載と違ってタグタイムラインに載るし流した方がよさそう?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
うーん悩む
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なんかHome以下転送しないリレー実装もありそうだったから無効にしてしまった
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あーAnnounceをHome扱いにすることがあるからやっぱりHome送ったほうがいいかも
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
どうせ今の状態だとHome投稿をPublicでRenoteした時に飛んでくし…
リレーのActorはApplicationに |
なんかkoa-compressがAccept-Encoding指定なしで、Content-Encoding: gzip でボディの中身がgzipじゃなさそうな謎バイナリ返してきてあやしいので無効に |
Homeはリレーに送らないように |
アカウント作成処理、src\server\api\common\signup.ts と共通化できるかな |
↑あとで私がやる |
共通化すると分岐だらけになりそうなのでやめた |
なるほど👀 |
src\server\api\common\signup.ts のkeyPair作るところはまとめられるけどやってない |
👍👍👍 |
Summary
Resolve #2443