fix(backend): ログインできなくなるため、ugcVisibilityForVisitorがnoneでもusers/showは許可するように
This commit is contained in:
parent
9dc423afd4
commit
8f025c447b
|
@ -6,9 +6,10 @@
|
|||
### Client
|
||||
- Enhance: 非同期的なコンポーネントの読み込み時のハンドリングを強化
|
||||
- Fix: リアクションの一部の絵文字が重複して表示されることがある問題を修正
|
||||
- Fix: 非利用者に対するユーザー作成コンテンツの公開範囲が全て非公開になっている場合にログインできない問題を修正
|
||||
|
||||
### Server
|
||||
-
|
||||
- Fix: 非利用者に対するユーザー作成コンテンツの公開範囲が全て非公開になっている場合でもusers/showを許可するように
|
||||
|
||||
|
||||
## 2025.5.1
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue