diaspora/app/services
Benjamin Neff 649d8c5b56
Mark notifications as read in a single SQL query
There is no need to load all comments only to count them. Lets just let
the database do all the work. If there are no comments found, nothing
will happen anyway.

Also already filter the comments to only search for notifications for
own comments.

And add some tests :)
2024-06-03 00:11:45 +02:00
..
aspects_membership_service.rb Merge branch 'next-minor' into develop 2020-02-12 00:13:19 +01:00
block_service.rb Add API route to (un)block a user 2020-03-20 12:38:27 +01:00
comment_service.rb Introduce like-interactions.js 2023-11-13 02:26:59 +01:00
conversation_service.rb API: Fix fetching explicitly not only unread conversations 2020-02-17 10:59:10 +01:00
diaspora_link_service.rb Allow links with only the diaspora ID to link to a profile 2019-04-28 16:48:31 +02:00
import_service.rb Dont Convert when initialized by import 2022-07-16 04:12:01 +02:00
like_service.rb Introduce like-interactions.js 2023-11-13 02:26:59 +01:00
migration_service.rb Send new remote_photo_path in migration message 2021-11-24 01:18:07 +01:00
notification_service.rb Add notifications for likes on comments 2023-11-13 02:27:55 +01:00
photo_service.rb undo changes in introduced by merge conflicts in the api branch 2020-01-21 23:56:01 +01:00
poll_participation_service.rb Add Poll Voting Method to Interactions Endpoint 2018-12-16 11:06:27 -05:00
post_service.rb Mark notifications as read in a single SQL query 2024-06-03 00:11:45 +02:00
reshare_service.rb Mark non-attribute usage in SQL queries as safe. 2020-02-11 23:54:55 +01:00
status_message_creation_service.rb API: allow post creation without a body when there are photos 2020-02-20 18:50:32 +01:00
tag_following_service.rb API: Return 409 when trying to create something existing and 410 when trying to delete something already gone 2020-02-02 18:04:11 +01:00