mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-13 03:50:51 +01:00
fix: 非ログイン状態でお知らせの読み込みができない問題の修正 (#131)
This commit is contained in:
parent
fce8bc1e7e
commit
233d967b82
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
query.orWhere('announcement."userId" = :userId', { userId: me.id });
|
||||
}
|
||||
} else {
|
||||
query.select([
|
||||
'announcement.*',
|
||||
'FALSE as "isRead"',
|
||||
]);
|
||||
query.where('announcement."userId" IS NULL');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue