-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
AP audience (visibility) パースの修正 #5783
AP audience (visibility) パースの修正 #5783
Conversation
visibleUsers = activityAudience.visibleUsers; | ||
apMentions = activityAudience.mentionedUsers; | ||
} else if (typeof value === 'string') { // 入力がstringならばresolverでGETが発生している | ||
// こちらから匿名GET出来たものならばpublic |
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.
公開範囲=未定義 ってことなのでなんともいえない
最初homeが無難かなとも思ったのですが
元々公開するための仕組みで公開範囲の概念がないのがデフォルトなのでpublicでいいかなと思いました。
あとhomeにすると、それを参照するRenote/Reply自体の公開範囲が常にhomeになっちゃいます。
Co-Authored-By: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-Authored-By: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
ありがとうございます 🙏 |
function isPublic(id: string) { | ||
return [ | ||
'https://www.w3.org/ns/activitystreams#Public', | ||
'as#Public', |
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.
as:Public
の間違えだった #11347
return [ | ||
'https://www.w3.org/ns/activitystreams#Public', | ||
'as#Public', | ||
'Public', |
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.
これ (Public
) いらない疑惑
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.
元IssueにはPublicを認識させろとまでは言ってないし、
https://www.w3.org/TR/activitypub/#x5-6-public-addressing
いやそんなことなさそうだしうーん
being represented as simply Public or as:Public
Compactしてもas:Public
だし
Public
が来てもCanonize
でエラーになるし
jsonld.ValidationError: Safe mode validation error.
{
"type": [
"JsonLdEvent"
],
"code": "relative object reference",
"level": "warning",
"message": "Relative object reference found.",
"details": {
"object": "Public"
}
}
Summary
Fix #4951
Resolve #5768
Resolve #5078
Resolve #5767
Activity の audience を見に行くように
匿名で取得できたのならば公開されているものに違いないとみなして public 扱いにするように。