enhance: ノート投稿関連のロールポリシー追加#16379
Open
kakkokari-gtyih wants to merge 32 commits into
Open
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #16379 +/- ##
===========================================
+ Coverage 15.22% 25.15% +9.93%
===========================================
Files 247 1157 +910
Lines 12322 39641 +27319
Branches 4170 11045 +6875
===========================================
+ Hits 1876 9972 +8096
- Misses 8183 23804 +15621
- Partials 2263 5865 +3602 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
|
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -66706,6 +66706,15 @@
"$ref": "#/components/schemas/Error"
},
"examples": {
+ "CANNOT_CREATE_NOTE": {
+ "value": {
+ "error": {
+ "message": "You are not allowed to create notes.",
+ "code": "CANNOT_CREATE_NOTE",
+ "id": "f35c0bd4-9dca-4998-ae4b-fa0e7c54d16a"
+ }
+ }
+ },
"NO_SUCH_RENOTE_TARGET": {
"value": {
"error": {
@@ -66832,6 +66841,51 @@
}
}
},
+ "CONTAINS_TOO_MANY_FILES": {
+ "value": {
+ "error": {
+ "message": "Cannot post because too many files are attached.",
+ "code": "CONTAINS_TOO_MANY_FILES",
+ "id": "8d28ca32-a244-4cf7-bc29-97895fdc3604"
+ }
+ }
+ },
+ "RENOTE_FORBIDDEN": {
+ "value": {
+ "error": {
+ "message": "You are not allowed to Renote.",
+ "code": "RENOTE_FORBIDDEN",
+ "id": "c5b0bcc1-9db1-4178-b130-920a4e150b58"
+ }
+ }
+ },
+ "QUOTE_FORBIDDEN": {
+ "value": {
+ "error": {
+ "message": "You are not allowed to quote.",
+ "code": "QUOTE_FORBIDDEN",
+ "id": "ae77a039-588a-40c3-8358-cc9c15ec7bbb"
+ }
+ }
+ },
+ "SPECIFIED_NOTE_CREATION_FORBIDDEN": {
+ "value": {
+ "error": {
+ "message": "You are not allowed to send specified notes.",
+ "code": "SPECIFIED_NOTE_CREATION_FORBIDDEN",
+ "id": "fe35a6b4-f595-4cbc-ab56-f31fa68be1f0"
+ }
+ }
+ },
+ "REMOTE_SPECIFIED_NOTE_CREATION_FORBIDDEN": {
+ "value": {
+ "error": {
+ "message": "You are not allowed to send specified notes to remote users.",
+ "code": "REMOTE_SPECIFIED_NOTE_CREATION_FORBIDDEN",
+ "id": "dd9e27c6-7cba-4587-92c7-672c82d9cc46"
+ }
+ }
+ },
"INVALID_PARAM": {
"value": {
"error": {
@@ -67570,33 +67624,6 @@
}
}
},
- "CANNOT_RENOTE_OUTSIDE_OF_CHANNEL": {
- "value": {
- "error": {
- "message": "Cannot renote outside of channel.",
- "code": "CANNOT_RENOTE_OUTSIDE_OF_CHANNEL",
- "id": "33510210-8452-094c-6227-4a6c05d99f00"
- }
- }
- },
- "CONTAINS_PROHIBITED_WORDS": {
- "value": {
- "error": {
- "message": "Cannot post because it contains prohibited words.",
- "code": "CONTAINS_PROHIBITED_WORDS",
- "id": "aa6e01d3-a85c-669d-758a-76aab43af334"
- }
- }
- },
- "CONTAINS_TOO_MANY_MENTIONS": {
- "value": {
- "error": {
- "message": "Cannot post because it exceeds the allowed number of mentions.",
- "code": "CONTAINS_TOO_MANY_MENTIONS",
- "id": "4de0363a-3046-481b-9b0f-feff3e211025"
- }
- }
- },
"TOO_MANY_DRAFTS": {
"value": {
"error": {
@@ -92822,6 +92849,26 @@
},
"watermarkAvailable": {
"type": "boolean"
+ },
+ "canNote": {
+ "type": "boolean"
+ },
+ "renotePolicy": {
+ "type": "string",
+ "enum": [
+ "allow",
+ "renoteOnly",
+ "disallow"
+ ]
+ },
+ "canCreateSpecifiedNote": {
+ "type": "boolean"
+ },
+ "canFederateNote": {
+ "type": "boolean"
+ },
+ "noteFilesLimit": {
+ "type": "integer"
}
},
"required": [
@@ -92863,7 +92910,12 @@
"chatAvailability",
"noteDraftLimit",
"scheduledNoteLimit",
- "watermarkAvailable"
+ "watermarkAvailable",
+ "canNote",
+ "renotePolicy",
+ "canCreateSpecifiedNote",
+ "canFederateNote",
+ "noteFilesLimit"
]
},
"ReversiGameLite": { |
anatawa12
reviewed
Aug 8, 2025
Contributor
Author
|
memo: frontend-sharedに追加したポリシーのkeyを追記する |
Contributor
Author
|
コンフリクト解消 |
Contributor
Backend memory usage comparisonBefore GC
After GC
After Request
|
Contributor
Author
|
コンフリクト解消 |
今までは問題なかったけど、maxFIleSizeMbで上限capするようになったため
This file contains hidden or 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
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.
What
canNoterenotePolicycanCreateSpecifiedNotecanFederateNotenoteFilesLimitを制御できるように
+ロールポリシーにより投稿拒否・投稿範囲変更が発生するケースのe2eを追加
+フロントエンドの投稿エラーのダイアログを充実させた
Why
Fix #16375
Fix #16439
Fix #11248
Fix #333
#14646
Additional info (optional)
Checklist