diaspora/spec
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
..
controllers Add notifications for likes on comments 2023-11-13 02:27:55 +01:00
fixtures Merge branch 'next-minor' into develop 2023-07-10 01:19:08 +02:00
helpers Adding Smart App Banner for insporation on iOS devices 2022-11-17 23:20:35 +01:00
integration Fix API v1 schema for likes on comments and add test 2023-11-13 02:27:55 +01:00
javascripts Merge pull request #8203 from tclaus/2999-likes-comment 2023-11-13 02:32:43 +01:00
lib Always strip exif data and drop user setting for it 2023-06-04 04:25:01 +02:00
mailers Add notifications for likes on comments 2023-11-13 02:27:55 +01:00
models Merge pull request #8437 from SuperTux88/fix-photo-export-spec 2023-11-13 02:32:57 +01:00
presenters Introduce like-interactions.js 2023-11-13 02:26:59 +01:00
serializers Always strip exif data and drop user setting for it 2023-06-04 04:25:01 +02:00
services Mark notifications as read in a single SQL query 2024-06-03 00:11:45 +02:00
shared_behaviors Merge branch 'next-minor' into develop 2022-06-29 13:28:02 +02:00
spec Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
support Always strip exif data and drop user setting for it 2023-06-04 04:25:01 +02:00
views/status_messages Merge branch 'next-minor' into develop 2022-07-20 21:34:39 +02:00
workers Don't time travel in check_birthday_spec 2022-09-20 03:20:48 +02:00
configuration_methods_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
factories.rb Cleanup duplicate pods in database 2022-10-31 01:45:13 +01:00
federation_callbacks_spec.rb Allow fetching comments 2024-01-21 23:30:51 +01:00
helper_methods.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
locale_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
spec_helper.rb Remove old stubs for /.well-known/host-meta 2022-07-23 00:21:06 +02:00