summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-06-02 08:37:22 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-06-02 08:37:22 +0900
commit8f025c447b57c01f3d198f8ea9871eb338d8e971 (patch)
tree5644542bde09f2ce10cc8f96036e761d900de938
parentfix(frontend): tweak MkFolderPage z-index (diff)
downloadmisskey-8f025c447b57c01f3d198f8ea9871eb338d8e971.tar.gz
misskey-8f025c447b57c01f3d198f8ea9871eb338d8e971.tar.bz2
misskey-8f025c447b57c01f3d198f8ea9871eb338d8e971.zip
fix(backend): ログインできなくなるため、ugcVisibilityForVisitorがnoneでもusers/showは許可するように
-rw-r--r--CHANGELOG.md3
-rw-r--r--packages/backend/src/server/api/endpoints/users/show.ts7
2 files changed, 6 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 68a05a67e8..34ad31928f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,9 +6,10 @@
### Client
- Enhance: 非同期的なコンポーネントの読み込み時のハンドリングを強化
- Fix: リアクションの一部の絵文字が重複して表示されることがある問題を修正
+- Fix: 非利用者に対するユーザー作成コンテンツの公開範囲が全て非公開になっている場合にログインできない問題を修正
### Server
--
+- Fix: 非利用者に対するユーザー作成コンテンツの公開範囲が全て非公開になっている場合でもusers/showを許可するように
## 2025.5.1
diff --git a/packages/backend/src/server/api/endpoints/users/show.ts b/packages/backend/src/server/api/endpoints/users/show.ts
index d57db42e6d..5ff3a63d6a 100644
--- a/packages/backend/src/server/api/endpoints/users/show.ts
+++ b/packages/backend/src/server/api/endpoints/users/show.ts
@@ -116,9 +116,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private apiLoggerService: ApiLoggerService,
) {
super(meta, paramDef, async (ps, me, _1, _2, _3, ip) => {
- if (this.serverSettings.ugcVisibilityForVisitor === 'none' && me == null) {
- throw new ApiError(meta.errors.noSuchUser);
- }
+ // ログイン時にusers/showできなくなってしまう
+ //if (this.serverSettings.ugcVisibilityForVisitor === 'none' && me == null) {
+ // throw new ApiError(meta.errors.noSuchUser);
+ //}
let user;