-
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
リモートクリップのお気に入り登録 #438
リモートクリップのお気に入り登録 #438
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #438 +/- ##
============================================
+ Coverage 20.21% 40.49% +20.28%
============================================
Files 787 1665 +878
Lines 117146 223792 +106646
Branches 1088 2936 +1848
============================================
+ Hits 23676 90616 +66940
- Misses 92882 132567 +39685
- Partials 588 609 +21 ☔ View full report in Codecov by Sentry. |
이 PR에 의한 api.json 차이 차이점은 여기에서 볼 수 있음--- base
+++ head
@@ -29990,6 +29990,15 @@
}
}
},
+ "FAILED_TO_RESOLVE_REMOTE_USER": {
+ "value": {
+ "error": {
+ "message": "failedToResolveRemoteUser.",
+ "code": "FAILED_TO_RESOLVE_REMOTE_USER",
+ "id": "56d5e552-d55a-47e3-9f37-6dc85a93ecf9"
+ }
+ }
+ },
"INVALID_PARAM": {
"value": {
"error": {
@@ -30115,8 +30124,7 @@
"type": "object",
"properties": {
"clipId": {
- "type": "string",
- "format": "misskey:id"
+ "type": "string"
}
},
"required": [
@@ -30273,6 +30281,26 @@
"bearerAuth": []
}
],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "withLocal": {
+ "type": "boolean",
+ "default": true
+ },
+ "withRemote": {
+ "type": "boolean",
+ "default": true
+ }
+ }
+ }
+ }
+ }
+ },
"responses": {
"200": {
"description": "OK (with results)", |
リモートお気に入り登録してもお気に入り登録数には反映されない仕様。リモートは読み取りしかできないし、単にローカルの加算するだけでは他インスタンスからリモートお気に入り登録した値が反映されないし、開き直ってリモート側の値そのまま使う事にした |
What
リモートのクリップをお気に入りに登録できるようにした。
clips/my-favoritesのオプションでローカルのみ、リモートのみに絞る事もできる
Why
resolve: #296
Additional info (optional)
デフォルト設定だとclips/my-favorites呼ばれるたびに2回DB読んでるから速度は悪そう
Checklist