forked from misskey-dev/misskey
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: note update federation #1
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -55760,6 +55760,281 @@
}
}
},
+ "/notes/update": {
+ "post": {
+ "operationId": "notes___update",
+ "summary": "notes/update",
+ "description": "No description provided.\n\n**Credential required**: *Yes* / **Permission**: *write:notes*",
+ "externalDocs": {
+ "description": "Source code",
+ "url": "https://github.com/misskey-dev/misskey/blob/develop/packages/backend/src/server/api/endpoints/notes/update.ts"
+ },
+ "tags": [
+ "notes"
+ ],
+ "security": [
+ {
+ "bearerAuth": []
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "noteId": {
+ "type": "string",
+ "format": "misskey:id"
+ },
+ "text": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "minLength": 1,
+ "maxLength": 3000
+ },
+ "fileIds": {
+ "type": "array",
+ "uniqueItems": true,
+ "minItems": 1,
+ "maxItems": 16,
+ "items": {
+ "type": "string",
+ "format": "misskey:id"
+ }
+ },
+ "mediaIds": {
+ "type": "array",
+ "uniqueItems": true,
+ "minItems": 1,
+ "maxItems": 16,
+ "items": {
+ "type": "string",
+ "format": "misskey:id"
+ }
+ },
+ "poll": {
+ "type": [
+ "object",
+ "null"
+ ],
+ "properties": {
+ "choices": {
+ "type": "array",
+ "uniqueItems": true,
+ "minItems": 2,
+ "maxItems": 10,
+ "items": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 50
+ }
+ },
+ "multiple": {
+ "type": "boolean"
+ },
+ "expiresAt": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "expiredAfter": {
+ "type": [
+ "integer",
+ "null"
+ ],
+ "minimum": 1
+ }
+ },
+ "required": [
+ "choices"
+ ]
+ },
+ "cw": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "maxLength": 100
+ },
+ "disableRightClick": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ "required": [
+ "noteId",
+ "text",
+ "cw"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "OK (without any results)"
+ },
+ "400": {
+ "description": "Client error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ },
+ "examples": {
+ "NO_SUCH_NOTE": {
+ "value": {
+ "error": {
+ "message": "No such note.",
+ "code": "NO_SUCH_NOTE",
+ "id": "a6584e14-6e01-4ad3-b566-851e7bf0d474"
+ }
+ }
+ },
+ "NO_SUCH_FILE": {
+ "value": {
+ "error": {
+ "message": "Some files are not found.",
+ "code": "NO_SUCH_FILE",
+ "id": "b6992544-63e7-67f0-fa7f-32444b1b5306"
+ }
+ }
+ },
+ "CANNOT_CREATE_ALREADY_EXPIRED_POLL": {
+ "value": {
+ "error": {
+ "message": "Poll is already expired.",
+ "code": "CANNOT_CREATE_ALREADY_EXPIRED_POLL",
+ "id": "04da457d-b083-4055-9082-955525eda5a5"
+ }
+ }
+ },
+ "INVALID_PARAM": {
+ "value": {
+ "error": {
+ "message": "Invalid param.",
+ "code": "INVALID_PARAM",
+ "id": "3d81ceae-475f-4600-b2a8-2bc116157532"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Authentication error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ },
+ "examples": {
+ "CREDENTIAL_REQUIRED": {
+ "value": {
+ "error": {
+ "message": "Credential required.",
+ "code": "CREDENTIAL_REQUIRED",
+ "id": "1384574d-a912-4b81-8601-c7b1c4085df1"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ },
+ "examples": {
+ "AUTHENTICATION_FAILED": {
+ "value": {
+ "error": {
+ "message": "Authentication failed. Please ensure your token is correct.",
+ "code": "AUTHENTICATION_FAILED",
+ "id": "b0a7f5f8-dc2f-4171-b91f-de88ad238e14"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "418": {
+ "description": "I'm Ai",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ },
+ "examples": {
+ "I_AM_AI": {
+ "value": {
+ "error": {
+ "message": "You sent a request to Ai-chan, Misskey's showgirl, instead of the server.",
+ "code": "I_AM_AI",
+ "id": "60c46cd1-f23a-46b1-bebe-5d2b73951a84"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "429": {
+ "description": "To many requests",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ },
+ "examples": {
+ "RATE_LIMIT_EXCEEDED": {
+ "value": {
+ "error": {
+ "message": "Rate limit exceeded. Please try again later.",
+ "code": "RATE_LIMIT_EXCEEDED",
+ "id": "d5826d14-3982-4d2e-8011-b9e9f02499ef"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ },
+ "examples": {
+ "INTERNAL_ERROR": {
+ "value": {
+ "error": {
+ "message": "Internal error occurred. Please contact us if the error persists.",
+ "code": "INTERNAL_ERROR",
+ "id": "5d37dbcb-891e-41ca-a3d6-e690c97775ac"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/notes/delete": {
"post": {
"operationId": "notes___delete",
@@ -77708,6 +77983,13 @@
"type": "string",
"format": "date-time"
},
+ "updatedAt": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
"deletedAt": {
"type": [
"string",
@@ -80361,6 +80643,12 @@
"canPublicNote": {
"type": "boolean"
},
+ "canEditNote": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
"mentionLimit": {
"type": "integer"
},
@@ -80435,6 +80723,7 @@
"gtlAvailable",
"ltlAvailable",
"canPublicNote",
+ "canEditNote",
"mentionLimit",
"canInvite",
"inviteLimit", |
caipira113
pushed a commit
that referenced
this pull request
Dec 27, 2023
caipira113
commented
Dec 29, 2023
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.
renamed!
caipira113
force-pushed
the
updateable-note
branch
from
January 1, 2024 15:06
9c5c562
to
80a32cf
Compare
caipira113
force-pushed
the
updateable-note
branch
from
August 19, 2024 17:28
bc9e94f
to
418f85c
Compare
caipira113
force-pushed
the
updateable-note
branch
from
August 19, 2024 17:59
418f85c
to
5347a63
Compare
caipira113
changed the title
feat: federated note edit
feat(backend): note update federation
Aug 19, 2024
caipira113
changed the title
feat(backend): note update federation
feat: note update federation
Aug 19, 2024
caipira113
force-pushed
the
updateable-note
branch
from
August 19, 2024 18:17
61d7347
to
9989409
Compare
caipira113
added a commit
that referenced
this pull request
Aug 20, 2024
yunochi
pushed a commit
to serafuku/misskey
that referenced
this pull request
Aug 26, 2024
jbblily
pushed a commit
to jbblily/misskey
that referenced
this pull request
Aug 30, 2024
yunochi
pushed a commit
to serafuku/misskey
that referenced
this pull request
Sep 30, 2024
yunochi
pushed a commit
to serafuku/misskey
that referenced
this pull request
Oct 13, 2024
yunochi
pushed a commit
to serafuku/misskey
that referenced
this pull request
Oct 16, 2024
yunochi
pushed a commit
to serafuku/misskey
that referenced
this pull request
Oct 30, 2024
libnare#1 ellelle - fix: When updating Note, emojis are not reflected through Streaming - fix: prevent note federation for localOnly
yunochi
added a commit
to serafuku/misskey
that referenced
this pull request
Oct 30, 2024
Cherry pick commits from: libnare#1 - ellelle - fix: When updating Note, emojis are not reflected through Streaming - fix: prevent note federation for localOnly Serafuku commits: - Note update 기능 수정 - Log 수정 - API리밋 수정 - 노트 상세보기 화면에서도 수정시간이 보이도록 - fix lint Co-authored-by: caipira113 <[email protected]>
HotoRas
added a commit
to HotoRas/misskey-neko
that referenced
this pull request
Nov 19, 2024
cherry-pick: 7bf8775 ====================== Cherry pick commits from: libnare#1 - ellelle - fix: When updating Note, emojis are not reflected through Streaming - fix: prevent note federation for localOnly Serafuku commits: - Note update 기능 수정 - Log 수정 - API리밋 수정 - 노트 상세보기 화면에서도 수정시간이 보이도록 - fix lint Co-authored-by: caipira113 <[email protected]>
yunochi
added a commit
to serafuku/misskey
that referenced
this pull request
Nov 23, 2024
Cherry pick commits from: libnare#1 - ellelle - fix: When updating Note, emojis are not reflected through Streaming - fix: prevent note federation for localOnly Serafuku commits: - Note update 기능 수정 - Log 수정 - API리밋 수정 - 노트 상세보기 화면에서도 수정시간이 보이도록 - fix lint Co-authored-by: caipira113 <[email protected]>
LilyMorpho
pushed a commit
to LilyMorpho/misskey_cremebrulee
that referenced
this pull request
Dec 27, 2024
Cherry pick commits from: libnare#1 - ellelle - fix: When updating Note, emojis are not reflected through Streaming - fix: prevent note federation for localOnly Serafuku commits: - Note update 기능 수정 - Log 수정 - API리밋 수정 - 노트 상세보기 화면에서도 수정시간이 보이도록 - fix lint Co-authored-by: caipira113 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
None