<feed xmlns='http://www.w3.org/2005/Atom'>
<title>misskey/packages/backend/src/server/api/endpoints/i/notifications.ts, branch master</title>
<subtitle>my misskey fork
</subtitle>
<id>http://g.freya.cat/misskey/atom?h=master</id>
<link rel='self' href='http://g.freya.cat/misskey/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/'/>
<updated>2025-06-28T11:21:21Z</updated>
<entry>
<title>enhance: ページネーション(一覧表示)の基準日時を指定できるように sinceId/untilIdが指定可能なエンドポイントにおいて、sinceDate/untilDateも指定可能に</title>
<updated>2025-06-28T11:21:21Z</updated>
<author>
<name>syuilo</name>
<email>4439005+syuilo@users.noreply.github.com</email>
</author>
<published>2025-06-28T11:21:21Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=b8e8f3ad25fafbe0567e710eddfcced04deb03ad'/>
<id>urn:sha1:b8e8f3ad25fafbe0567e710eddfcced04deb03ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix: 通知のページネーションで２つ以上読み込めなくなることがある問題 (#15277)</title>
<updated>2025-04-02T01:37:16Z</updated>
<author>
<name>anatawa12</name>
<email>anatawa12@icloud.com</email>
</author>
<published>2025-04-02T01:37:16Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=55d835ad51dd4e114d367b3711ce0025a15fe26f'/>
<id>urn:sha1:55d835ad51dd4e114d367b3711ce0025a15fe26f</id>
<content type='text'>
* fix: notifications-groupedのinclude/exclude typesに:groupedを指定できてしまう問題

* refactor: 通知の取得処理を Notification Service に移動

* feat: add function to parse additional part of id

* fix: 通知のページネーションが正しく動かない問題

Redisにのページネーションで使用する時間及びidとRedis上のものが混同されていたので、Misskeyが生成するものに寄せました。

* pnpm run build-misskey-js-with-types

* chore: XADDをretryするように

* fix: notifications-groupedでxrevrangeしているのを消し忘れていた</content>
</entry>
<entry>
<title>Feat: Chat (#15686)</title>
<updated>2025-03-24T12:32:46Z</updated>
<author>
<name>syuilo</name>
<email>4439005+syuilo@users.noreply.github.com</email>
</author>
<published>2025-03-24T12:32:46Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=f1f24e39d2df3135493e2c2087230b428e2d02b7'/>
<id>urn:sha1:f1f24e39d2df3135493e2c2087230b428e2d02b7</id>
<content type='text'>
* wip

* wip

* wip

* wip

* wip

* wip

* Update types.ts

* Create 1742203321812-chat.js

* wip

* wip

* Update room.vue

* Update home.vue

* Update home.vue

* Update ja-JP.yml

* Update index.d.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update CHANGELOG.md

* wip

* Update home.vue

* clean up

* Update misskey-js.api.md

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* lint fixes

* lint

* Update UserEntityService.ts

* search

* wip

* 🎨

* wip

* Update home.ownedRooms.vue

* wip

* Update CHANGELOG.md

* Update style.scss

* wip

* improve performance

* improve performance

* Update timeline.test.ts</content>
</entry>
<entry>
<title>fix notification limit with exclude/include types (#13836)</title>
<updated>2024-05-20T09:05:46Z</updated>
<author>
<name>anatawa12</name>
<email>anatawa12@icloud.com</email>
</author>
<published>2024-05-20T09:05:46Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=4d0db37d2e5baddea3995e222bddca7032052ef1'/>
<id>urn:sha1:4d0db37d2e5baddea3995e222bddca7032052ef1</id>
<content type='text'>
* fix: /i/notificationsがsinceIdのみのときに正しく動かない問題

Fix #10902 again

* chore: use exclusive range to fetch data

* fix: フィルタによって通知が0件だった場合でもリトライするように

* docs(changelog): `/i/notifications`に includeTypes`か`excludeTypes`を指定しているとき、通知が存在するのに空配列を返すことがある問題を修正</content>
</entry>
<entry>
<title>enhance(backend): 通知がミュート・凍結を考慮するようにする (#13412)</title>
<updated>2024-02-28T12:26:26Z</updated>
<author>
<name>taichan</name>
<email>40626578+tai-cha@users.noreply.github.com</email>
</author>
<published>2024-02-28T12:26:26Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=5f43c2faa2fae3866a9921d81ab43c3b9e8bd222'/>
<id>urn:sha1:5f43c2faa2fae3866a9921d81ab43c3b9e8bd222</id>
<content type='text'>
* Never return broken notifications #409

Since notifications are stored in Redis, we can't expect relational
integrity: deleting a user will *not* delete notifications that
mention it.

But if we return notifications with missing bits (a `follow` without a
`user`, for example), the frontend will get very confused and throw an
exception while trying to render them.

This change makes sure we never expose those broken notifications. For
uniformity, I've applied the same logic to notes and roles mentioned
in notifications, even if nobody reported breakage in those cases.

Tested by creating a few types of notifications with a `notifierId`,
then deleting their user.

(cherry picked from commit 421f8d49e5d7a8dc3a798cc54716c767df8be3cb)

* Update Changelog

* Update CHANGELOG.md

* enhance: 通知がミュートを考慮するようにする

* enhance: 通知が凍結も考慮するようにする

* fix: notifierIdがない通知が消えてしまう問題

* Add tests (通知がミュートを考慮しているかどうか)

* fix: notifierIdがない通知が消えてしまう問題 (grouped)

* Remove unused import

* Fix: typo

* Revert "enhance: 通知が凍結も考慮するようにする"

This reverts commit b1e57e571dfd9a7d8b2430294473c2053cc3ea33.

* Revert API handling

* Remove unused imports

* enhance: Check if notifierId is valid in NotificationEntityService

* 通知作成時にpackしてnullになったらあとの処理をやめる

* Remove duplication of valid notifier check

* add filter notification is not null

* Revert "Remove duplication of valid notifier check"

This reverts commit 239a6952f717add53d52c3e701e7362eb1987645.

* Improve performance

* Fix packGrouped

* Refactor: 判定部分を共通化

* Fix condition

* use isNotNull

* Update CHANGELOG.md

* filterの改善

* Refactor: DONT REPEAT YOURSELF
Note: GroupedNotificationはNotificationの拡張なのでその例外だけ書けば基本的に共通の処理になり複雑な個別の処理は増えにくいと思われる

* Add groupedNotificationTypes

* Update misskey-js typedef

* Refactor: less sql calls

* refactor

* clean up

* filter notes to mark as read

* packed noteがmapなのでそちらを使う

* if (notesToRead.size &gt; 0)

* if (notes.length === 0) return;

* fix

* Revert "if (notes.length === 0) return;"

This reverts commit 22e2324f9633bddba50769ef838bc5ddb4564c88.

* :art:

* console.error

* err

* remove try-catch

* 不要なジェネリクスを除去

* Revert  (既読処理をpack内で行うものを元に戻す)

* Clean

* Update packages/backend/src/core/entities/NotificationEntityService.ts

* Update packages/backend/src/core/entities/NotificationEntityService.ts

* Update packages/backend/src/core/entities/NotificationEntityService.ts

* Update packages/backend/src/core/entities/NotificationEntityService.ts

* Update packages/backend/src/core/NotificationService.ts

* Clean

---------

Co-authored-by: dakkar &lt;dakkar@thenautilus.net&gt;
Co-authored-by: kakkokari-gtyih &lt;daisho7308+f@gmail.com&gt;
Co-authored-by: かっこかり &lt;67428053+kakkokari-gtyih@users.noreply.github.com&gt;
Co-authored-by: tamaina &lt;tamaina@hotmail.co.jp&gt;
Co-authored-by: syuilo &lt;4439005+syuilo@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>(re)  update SPDX-FileCopyrightText</title>
<updated>2024-02-13T15:59:27Z</updated>
<author>
<name>tamaina</name>
<email>tamaina@hotmail.co.jp</email>
</author>
<published>2024-02-13T15:59:27Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=c1514ce91dc08481a092a789ee37da546cdb4583'/>
<id>urn:sha1:c1514ce91dc08481a092a789ee37da546cdb4583</id>
<content type='text'>
Fix  #13290
</content>
</entry>
<entry>
<title>Revert "update SPDX-FileCopyrightText"</title>
<updated>2024-02-13T15:50:11Z</updated>
<author>
<name>tamaina</name>
<email>tamaina@hotmail.co.jp</email>
</author>
<published>2024-02-13T15:50:11Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=311c2172d7bc861d915a28650684a1587ecb4695'/>
<id>urn:sha1:311c2172d7bc861d915a28650684a1587ecb4695</id>
<content type='text'>
This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
</content>
</entry>
<entry>
<title>update SPDX-FileCopyrightText</title>
<updated>2024-02-12T02:37:45Z</updated>
<author>
<name>syuilo</name>
<email>Syuilotan@yahoo.co.jp</email>
</author>
<published>2024-02-12T02:37:45Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=9b5aeb76d8c9372d67058c512597152b6bf222f2'/>
<id>urn:sha1:9b5aeb76d8c9372d67058c512597152b6bf222f2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: notification grouping</title>
<updated>2023-11-02T06:57:55Z</updated>
<author>
<name>syuilo</name>
<email>Syuilotan@yahoo.co.jp</email>
</author>
<published>2023-11-02T06:57:55Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=f62ad3ed3eccfd242b2d1f1e25f00276f2bfff77'/>
<id>urn:sha1:f62ad3ed3eccfd242b2d1f1e25f00276f2bfff77</id>
<content type='text'>
Resolve #12211
</content>
</entry>
<entry>
<title>refactor(backend): update directory structure for models</title>
<updated>2023-09-20T02:33:36Z</updated>
<author>
<name>syuilo</name>
<email>Syuilotan@yahoo.co.jp</email>
</author>
<published>2023-09-20T02:33:36Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/misskey/commit/?id=053da10e94c2412f58215116a958c0922261a610'/>
<id>urn:sha1:053da10e94c2412f58215116a958c0922261a610</id>
<content type='text'>
</content>
</entry>
</feed>
