Skip to content
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: 過去のノートを非公開化/フォロワーのみ表示可能にできる機能 #14814

Merged
merged 9 commits into from
Oct 22, 2024

Conversation

syuilo
Copy link
Member

@syuilo syuilo commented Oct 21, 2024

What

Resolve #14802

Why

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added packages/frontend Client side specific issue/PR packages/backend Server side specific issue/PR packages/misskey-js labels Oct 21, 2024
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 16.01942% with 173 lines in your changes missing coverage. Please review.

Project coverage is 41.24%. Comparing base (70b2a8f) to head (1a75aed).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
packages/frontend/src/pages/settings/privacy.vue 0.00% 106 Missing ⚠️
...ges/backend/src/core/entities/NoteEntityService.ts 0.00% 63 Missing ⚠️
.../backend/src/core/activitypub/ApRendererService.ts 0.00% 2 Missing ⚠️
...kages/backend/src/server/api/endpoints/i/update.ts 50.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #14814       +/-   ##
============================================
+ Coverage    19.45%   41.24%   +21.78%     
============================================
  Files          722     1559      +837     
  Lines       102566   201838    +99272     
  Branches       991     3680     +2689     
============================================
+ Hits         19958    83254    +63296     
- Misses       82058   117980    +35922     
- Partials       550      604       +54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Oct 21, 2024

このPRによるapi.jsonの差分

差分はこちら
--- base
+++ head
@@ -50278,6 +50278,18 @@
                   "requireSigninToViewContents": {
                     "type": "boolean"
                   },
+                  "makeNotesFollowersOnlyBefore": {
+                    "type": [
+                      "integer",
+                      "null"
+                    ]
+                  },
+                  "makeNotesHiddenBefore": {
+                    "type": [
+                      "integer",
+                      "null"
+                    ]
+                  },
                   "isBot": {
                     "type": "boolean"
                   },
@@ -77156,6 +77168,18 @@
           "requireSigninToViewContents": {
             "type": "boolean"
           },
+          "makeNotesFollowersOnlyBefore": {
+            "type": [
+              "number",
+              "null"
+            ]
+          },
+          "makeNotesHiddenBefore": {
+            "type": [
+              "number",
+              "null"
+            ]
+          },
           "instance": {
             "type": "object",
             "properties": {

Get diff files from Workflow Page

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

ピン留めされたノートは除外したいけどパフォーマンス的に困難な可能性がある

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

いやそうでもないな

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

いやそうかも

@Sayamame-beans
Copy link
Member

最低限、TLに流れなくてもユーザーページからは見られたら良いかもしれませんね(ユーザー情報にピン留めノートの情報含まれてませんでしたっけ)

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

ユーザーページからは見れるようにするのは多分簡単に実装できるけど、投稿詳細に遷移したら非公開扱いになるのが混乱を招きそう

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

ピン留めノートの情報はUser自体は持っていないから、投稿詳細などでもピン留め考慮する場合はいちいち追加でクエリ走らせる必要が出てくる

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

ユーザーページからは見れるようにするのは多分簡単に実装できるけど、投稿詳細に遷移したら非公開扱いになるのが混乱を招きそう

まあ見れないよりはマシかしら

@Sayamame-beans
Copy link
Member

それは確かに…

@Sayamame-beans
Copy link
Member

まあ見れないよりはマシかしら

私もそう思ったので、"最低限"としての提案でした

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

もしくはUserにも非正規化としてピン留め情報持たせるようにするとか

@Sayamame-beans
Copy link
Member

Sayamame-beans commented Oct 21, 2024

IDだけでも持っていれば照らし合わせることは出来そう…

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

もしくはUserにも非正規化としてピン留め情報持たせるようにするとか

別のPRでやるか

@syuilo syuilo marked this pull request as ready for review October 21, 2024 12:16
@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

レビュワーを募集しています

@syuilo
Copy link
Member Author

syuilo commented Oct 21, 2024

※Chromaticはプラン上限を超過したため確認不能

@syuilo
Copy link
Member Author

syuilo commented Oct 22, 2024

マージするか

@syuilo syuilo merged commit 952fec5 into develop Oct 22, 2024
37 of 39 checks passed
@syuilo syuilo deleted the makeNotesHiddenBefore branch October 22, 2024 08:08
@syuilo
Copy link
Member Author

syuilo commented Oct 22, 2024

🙏🏻

KisaragiEffective added a commit to KisaragiEffective/misskey-hub-next that referenced this pull request Oct 24, 2024
kakkokari-gtyih pushed a commit to misskey-dev/misskey-hub-next that referenced this pull request Oct 25, 2024
* ap: `_misskey_makeNotes*Before`

misskey-dev/misskey#14814

* fix ambiguous description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/backend Server side specific issue/PR packages/frontend Client side specific issue/PR packages/misskey-js
Projects
None yet
2 participants