-
Notifications
You must be signed in to change notification settings - Fork 6
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
Enhance: Fedibird形式の絵文字情報連合に対応 #604
base: develop
Are you sure you want to change the base?
Conversation
이 PR에 의한 api.json 차이 차이점은 여기에서 볼 수 있음--- base
+++ head
@@ -7295,6 +7295,41 @@
"items": {
"type": "string"
}
+ },
+ "copyPermission": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "allow",
+ "deny",
+ "conditional",
+ null
+ ],
+ "default": "allow",
+ "description": "この絵文字を外部サーバーへコピーすることの許可"
+ },
+ "usageInfo": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "使用する際の説明"
+ },
+ "author": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "作者情報"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "絵文字の説明"
}
},
"required": [
@@ -7505,6 +7540,41 @@
"items": {
"type": "string"
}
+ },
+ "copyPermission": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "allow",
+ "deny",
+ "conditional",
+ null
+ ],
+ "default": "allow",
+ "description": "この絵文字を外部サーバーへコピーすることの許可"
+ },
+ "usageInfo": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "使用する際の説明"
+ },
+ "author": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "作者情報"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "絵文字の説明"
}
},
"required": [
@@ -7679,6 +7749,9 @@
"emojiId": {
"type": "string",
"format": "misskey:id"
+ },
+ "usageInfoReaded": {
+ "type": "boolean"
}
},
"required": [
@@ -7734,6 +7807,24 @@
}
}
},
+ "NOT_ALLOWED": {
+ "value": {
+ "error": {
+ "message": "Copy is not allowed this emoji.",
+ "code": "NOT_ALLOWED",
+ "id": "1beadfcc-3882-f3c9-ee57-ded45e4741e4"
+ }
+ }
+ },
+ "SEE_USAGEINFOMATION_OR_LICENSE": {
+ "value": {
+ "error": {
+ "message": "see Usage information or license.",
+ "code": "SEE_USAGEINFOMATION_OR_LICENSE",
+ "id": "28d9031e-ddbc-5ba3-c435-fcb5259e8408"
+ }
+ }
+ },
"INVALID_PARAM": {
"value": {
"error": {
@@ -8386,6 +8477,40 @@
},
"url": {
"type": "string"
+ },
+ "copyPermission": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "allow",
+ "deny",
+ "conditional",
+ null
+ ],
+ "description": "この絵文字を外部サーバーへコピーすることの許可"
+ },
+ "usageInfo": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "使用する際の説明"
+ },
+ "author": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "作者情報"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "絵文字の説明"
}
},
"required": [
@@ -8394,7 +8519,11 @@
"name",
"category",
"host",
- "url"
+ "url",
+ "copyPermission",
+ "usageInfo",
+ "author",
+ "description"
]
}
}
@@ -9381,6 +9510,9 @@
},
"host": {
"type": "string"
+ },
+ "usageInfoReaded": {
+ "type": "boolean"
}
},
"required": [
@@ -9446,6 +9578,24 @@
}
}
},
+ "NOT_ALLOWED": {
+ "value": {
+ "error": {
+ "message": "Copy is not allowed this emoji.",
+ "code": "NOT_ALLOWED",
+ "id": "1beadfcc-3882-f3c9-ee57-ded45e4741e4"
+ }
+ }
+ },
+ "SEE_USAGEINFOMATION_OR_LICENSE": {
+ "value": {
+ "error": {
+ "message": "see Usage information or license.",
+ "code": "SEE_USAGEINFOMATION_OR_LICENSE",
+ "id": "28d9031e-ddbc-5ba3-c435-fcb5259e8408"
+ }
+ }
+ },
"INVALID_PARAM": {
"value": {
"error": {
@@ -9612,6 +9762,40 @@
"items": {
"type": "string"
}
+ },
+ "copyPermission": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "allow",
+ "deny",
+ "conditional",
+ null
+ ],
+ "description": "この絵文字を外部サーバーへコピーすることの許可"
+ },
+ "usageInfo": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "使用する際の説明"
+ },
+ "author": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "作者情報"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "description": "絵文字の説明"
}
},
"anyOf": [
@@ -88962,6 +89146,36 @@
"type": "string",
"format": "id"
}
+ },
+ "copyPermission": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "enum": [
+ "allow",
+ "deny",
+ "conditional",
+ null
+ ]
+ },
+ "usageInfo": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "author": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
}
},
"required": [
@@ -88974,7 +89188,11 @@
"license",
"isSensitive",
"localOnly",
- "roleIdsThatCanBeUsedThisEmojiAsReaction"
+ "roleIdsThatCanBeUsedThisEmojiAsReaction",
+ "copyPermission",
+ "usageInfo",
+ "author",
+ "description"
]
},
"Flash": { |
れでーふぉーれびゅー |
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.
ApRenderServiceで送ってるのにApInboxServiceでは受け取らないの?
ApRenderServiceで送るならbackend/src/core/activitypub/type.tsのIApEmojiの定義も変えないとダメじゃない?
packages/backend/migration/1735299834220-EmojiInfoFederation.js
Outdated
Show resolved
Hide resolved
packages/backend/migration/1735299834220-EmojiInfoFederation.js
Outdated
Show resolved
Hide resolved
keywords: emoji.aliases, | ||
...(emoji.usageInfo === null ? { } : { usageInfo: emoji.usageInfo }), | ||
...(emoji.author === null ? { } : { author: emoji.author }), | ||
...(emoji.description === null ? { } : { description: emoji.description }), |
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.
送信絵文字全部に詳細まで付くんだ。
idやuriで参照とかじゃないのね。
先行実装がそうなんだよね?
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.
これが飛んできてた
https://fedibird.com/emojis/92354.json
あとApRenderService/ApInboxServiceで扱うなら連合テストの追加も欲しい |
extractApEmojiが呼ばれてるからinboxで受け取ってない? |
辿れてなかった |
???
|
それ私も踏んで何が違うんだって怒りながらJSON.stringifyして比較したら一致したんだよね。ArrayとかObjectの比較がなんかおかしい |
一応、本来はdeepStrictEqualってのがArrayとかObject比較する用のやつ |
@kozakura913 なおして |
なんか通った |
What
Enhance: Fedibird形式の絵文字情報連合に対応
Why
Resolve #544
Additional info (optional)
misskey-dev/misskey#10859 (comment)
Checklist