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

fix (backend): 「みつける」のなかにミュートしたユーザが現れてしまう問題を修正 #12559

Merged
merged 3 commits into from
Dec 3, 2023

Conversation

samunohito
Copy link
Member

What

#12383 の対処です。
この対応により、自分がミュートしたユーザがハイライトの中に表示されることがなくなります。
また、同様にハイライトに載っているユーザにブロックされている場合、同じくハイライトの中に表示されることがなくなります。

Why

fix #12383

Additional info (optional)

以下をローカルで確認しました

  • ユーザAの画面でハイライトに載ったユーザBをミュートしてリロード →ユーザBが消える
  • ユーザBの画面でユーザAをブロックし、ユーザAの画面をリロード →ユーザBが消える

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 the packages/backend Server side specific issue/PR label Dec 3, 2023
Copy link

codecov bot commented Dec 3, 2023

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (af15f8d) 78.42% compared to head (f8dcc85) 78.77%.
Report is 1 commits behind head on develop.

Files Patch % Lines
...backend/src/server/api/endpoints/notes/featured.ts 16.66% 15 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #12559      +/-   ##
===========================================
+ Coverage    78.42%   78.77%   +0.35%     
===========================================
  Files          180      956     +776     
  Lines        23857   104015   +80158     
  Branches       495     8351    +7856     
===========================================
+ Hits         18709    81943   +63234     
- Misses        5148    22072   +16924     

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

Copy link
Contributor

github-actions bot commented Dec 3, 2023

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

差分はこちら

Get diff files from Workflow Page

] = me ? await Promise.all([
this.cacheService.userMutingsCache.fetch(me.id),
this.cacheService.userBlockedCache.fetch(me.id),
]) : [new Set<string>(), new Set<string>(), new Set<string>()];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

数があってないわね

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2つにしました
凡ミス申し訳ないです🙇‍♂️

f8dcc85

@syuilo syuilo merged commit 55c8ec8 into misskey-dev:develop Dec 3, 2023
18 checks passed
@syuilo
Copy link
Member

syuilo commented Dec 3, 2023

🙏🙏

camilla-ett pushed a commit to kaseiski/misskey that referenced this pull request Jan 2, 2024
* fix (backend): 「みつける」のなかにミュートしたユーザが現れてしまう問題を修正

* fix
@samunohito samunohito deleted the fix/12383_featured_muting branch January 11, 2024 00:15
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ハイライトがユーザーミュート設定を考慮しない
2 participants