1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00
dakkar c927c30567 mark grouped notifs by oldest id - sort-of fix 1139
Misskey's code does the same, but our groups behave differently enough
that this may be not the best choice

for example, let's say we have:

- notifications 1-5 for reaction to note A
- notifications 6-8 for reaction to note B
- notifications 9-12 for reaction to note A
- notification 13-19 for non-groupable events
- notification 20 for reaction to note A

and that events happened one every minute (so the last notification is
from 20 minutes ago)

client requests the most recent 10 notifications; we fetch
notifications 1-10, and reply:

- grouped id 6 for reactions 6-8 to note B
- grouped id 10 for reactions 1-5, 9-10 to note A

then the client requests 10 more notifications, untilId=10; we fetch
notifications 11-20, and reply:

- non-grouped notifications 13-19
- grouped id 20 for reactions 11,12,20 to note A

because we sort by id, and also the `createdAt` marks the _newest_
event in each group, the client will then show:

  6 reactions to note B, 6 minutes ago
  4 reactions to note A, 1 minute ago
  notifications 13-19, 13 minutes to 19 minutes ago
  3 reactions to note A, 11 minutes ago

I don't know how to make this work better ☹
2025-07-03 14:16:20 +01:00
2025-05-30 12:29:07 -04:00
2022-06-09 00:50:23 +09:00
2025-04-02 22:29:14 -04:00
2024-10-22 19:24:19 +01:00
2025-05-28 21:31:40 -04:00
2025-02-06 10:45:05 +00:00
2024-11-13 19:43:36 +09:00
2025-03-25 16:14:53 -04:00
2023-02-26 14:17:29 +09:00
2025-06-09 11:02:53 -04:00
2025-01-04 14:37:14 +09:00
2024-10-08 15:20:52 -03:00
2022-06-11 15:53:45 +09:00
2025-06-19 08:26:00 +00:00
2024-03-13 00:17:57 +00:00
2025-06-16 14:57:15 +01:00
2025-04-20 13:19:28 +02:00
2024-01-04 08:44:38 +09:00
2025-02-03 14:36:09 -05:00

Sharkey logo

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


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 to
  • 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

Description
No description provided
Readme AGPL-3.0 176 MiB
Languages
TypeScript 64.4%
Vue 29.1%
JavaScript 5.9%
SCSS 0.3%
Pug 0.2%