1
0
dakkar 421f8d49e5 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.
2024-02-11 12:25:50 +00:00
2024-02-02 07:48:35 +00:00
2022-06-09 00:50:23 +09:00
2024-02-02 07:48:35 +00:00
2023-12-23 15:26:42 +00:00
2024-02-03 20:19:44 +01:00
2024-02-03 20:19:44 +01:00
2024-01-21 13:11:23 +01:00
2024-02-02 07:48:35 +00:00
2023-11-24 09:20:41 +09:00
2024-02-03 15:01:09 +01:00
2018-08-13 00:24:45 +09:00
2023-02-26 14:17:29 +09:00
2023-12-08 09:00:23 +09:00
2024-01-01 00:30:56 +09:00
2022-06-11 15:53:45 +09:00
2024-02-01 14:36:48 +00:00
2024-01-21 13:11:23 +01:00
2023-09-23 04:45:07 +02:00
2018-03-28 22:56:28 +09:00
2024-02-03 20:19:44 +01:00
2024-02-03 20:19:44 +01:00
2024-01-21 13:11:23 +01:00
2019-04-05 18:17:30 +09:00
2024-01-04 08:44:38 +09:00
2024-02-02 07:48:35 +00:00

Sharkey logo

🌎 Sharkey is an open source, decentralized social media platform that's free forever! 🚀


find an instance create an instance become a contributor join the community donate

Features

  • ActivityPub support
    Not on Sharkey? No problem! Not only can Sharkey instances talk to each other, but you can make friends with people on other networks like Mastodon and Pixelfed!
  • Federated Backgrounds and Music status
    You can add a background to your profile as well as a music status via ListenBrainz, show everyone what music you are currently listening too
  • Mastodon API
    Sharkey implements the Mastodon API unlike normal Misskey
  • UI/UX Improvements
    Sharkey makes some UI/UX improvements to make it easier to navigate
  • Sign-Up Approval
    With Sharkey, you can enable sign-ups, subject to manual moderator approval and mandatory user-provided reasons for joining.
  • Rich Web UI
    Sharkey has a rich and easy to use Web UI! It is highly customizable, from changing the layout and adding widgets to making custom themes. Furthermore, plugins can be created using AiScript, an original programming language.
  • And much more...

Documentation

Sharkey Documentation can be found at Sharkey Documentation

S
Description
Mirror of the Pawkey source code
Readme AGPL-3.0 176 MiB
Languages
TypeScript 64.4%
Vue 29.1%
JavaScript 5.9%
SCSS 0.3%
Pug 0.2%