Commit graph

20973 commits

Author SHA1 Message Date
Benjamin Neff
e8a374a16d
Bump leaflet-rails 2024-06-05 00:34:00 +02:00
Benjamin Neff
046280c480
Bump rails-i18n 2024-06-05 00:34:00 +02:00
Benjamin Neff
813e44c0a9
Bump jquery-ui-rails 2024-06-05 00:34:00 +02:00
Benjamin Neff
dcd29a6968
Bump jquery-rails and jquery 2024-06-05 00:34:00 +02:00
Benjamin Neff
769c6b1a8c
Bump js-routes 2024-06-05 00:34:00 +02:00
Benjamin Neff
a080d2a01a
Bump fog-aws 2024-06-05 00:34:00 +02:00
Benjamin Neff
541da9f682
Bump carrierwave
Carrierwave 3.0.4 cleans the original_filename after store, but we can
still get the original filename from the file directly.
2024-06-05 00:33:58 +02:00
Benjamin Neff
016b2f15c5
Bump activerecord-import 2024-06-05 00:25:29 +02:00
Benjamin Neff
cb0c02f9f2
Bump pg 2024-06-05 00:24:54 +02:00
Benjamin Neff
47b7181061
Bump mysql2 2024-06-05 00:24:54 +02:00
Benjamin Neff
2c34f271d9
Bump autoprefixer-rails 2024-06-05 00:24:54 +02:00
Benjamin Neff
0615ac112b
Bump rack-cors 2024-06-05 00:24:54 +02:00
Benjamin Neff
7dc1e2d026
Bump toml-rb 2024-06-05 00:24:53 +02:00
Benjamin Neff
abb59cc1b4
Bump configurate 2024-06-05 00:24:53 +02:00
Benjamin Neff
5eec93d2ef
Bump terser 2024-06-05 00:24:53 +02:00
Benjamin Neff
d390499e86
Bump sidekiq and sidekiq-cron 2024-06-05 00:24:53 +02:00
Benjamin Neff
630b70bcf0
Bump devise 2024-06-05 00:24:53 +02:00
Benjamin Neff
61592cca67
Bump json-schema 2024-06-05 00:24:53 +02:00
Benjamin Neff
9ed57596c1
Bump json 2024-06-05 00:24:53 +02:00
Benjamin Neff
7910103f60
Bump puma 2024-06-05 00:24:53 +02:00
Benjamin Neff
eb12b5596c
Bump responders 2024-06-05 00:24:53 +02:00
Benjamin Neff
5e13a7208d
Bump rails 2024-06-05 00:24:50 +02:00
Benjamin Neff
4b49270be7
Simplify comment and post validation
It's enough to check if the comment exists on the specified post, if it
doesn't exist at all, that check will also fail.

Also do that check directly on SQL level and just check if the comment
exist instead of looping through all comments.
2024-06-05 00:14:31 +02:00
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
Benjamin Neff
52424fba6d
Add available_services helper to be used for desktop and mobile 2024-06-02 05:08:29 +02:00
Benjamin Neff
a83d34dcda
Bump bundler to match ruby 3.1.5 2024-05-30 02:28:34 +02:00
flaburgan
71e6f20740 Mark Likes on comment notifications as read when visiting a post 2024-02-11 18:40:29 +01:00
flaburgan
14cf4ff85d Do not show the service to the user if it is disabled, fixes #6184 2024-02-11 17:12:02 +01:00
Benjamin Neff
ae3b7804f0
Merge pull request #8441 from SuperTux88/fix-fetch-comments
Allow fetching comments
2024-01-24 01:03:08 +01:00
Benjamin Neff
7cc48bec54
Merge pull request #8285 from Flaburgan/revamped-registrations
New registration page
2024-01-24 01:00:11 +01:00
Benjamin Neff
9e61693e20
Allow fetching comments
Now with likes on comments, diaspora also tries to fetch comments if it
receives a like for a comment it doesn't know yet. So this now also
allows to fetch comments with `/fetch/comment/<guid>`.
2024-01-21 23:30:51 +01:00
Jonne Haß
1e1130e211 add API routes for comment likes 2023-11-24 18:12:59 +01:00
flaburgan
89f906b1b1 Fix horizontal scroll and captcha on mobile, host for user id 2023-11-13 22:13:44 +01:00
flaburgan
7782a32921 New registration page, mentionning the import, fixes #8009 2023-11-13 21:06:20 +01:00
Benjamin Neff
389b1870d3
Merge pull request #8437 from SuperTux88/fix-photo-export-spec
Ensure image processing gets disabled again, even after exceptions
2023-11-13 02:32:57 +01:00
Benjamin Neff
42ffd6322f
Merge pull request #8203 from tclaus/2999-likes-comment
Re-introduce likes on comments
2023-11-13 02:32:43 +01:00
Benjamin Neff
686f67d2f8
Merge pull request #8035 from Flaburgan/improve-report-form
Add a more detailed modal when reporting a post or a comment
2023-11-13 02:31:20 +01:00
Benjamin Neff
b0c196aea0
Add notifications for likes on comments 2023-11-13 02:27:55 +01:00
Benjamin Neff
3e1407d242
Fix comments not being lazy loaded in streams anymore 2023-11-13 02:27:55 +01:00
Benjamin Neff
df8275f000
Fix participations for likes on comments in the backend
When liking a comment, the post also gets a participation, and if all
likes/comments get removed again, the participation also gets removed
again.

The only thing still not working properly is the frontend, but that is
already broken when unliking a post. So it shows an invalids state in
the frontend when unliking the post/comment.
2023-11-13 02:27:55 +01:00
Benjamin Neff
edfb603965
Fix API v1 schema for likes on comments and add test 2023-11-13 02:27:55 +01:00
flaburgan
5153534f4c
Fix pronto in Ruby 2023-11-13 02:27:55 +01:00
flaburgan
1b2f85c384
Improve styling for mobile comments 2023-11-13 02:27:55 +01:00
Benjamin Neff
71d071be60
Only show heart icon when avatars are shown for comment likes 2023-11-13 02:27:55 +01:00
Benjamin Neff
ad6c9dd55f
Fix styling and spacing for likes on comments 2023-11-13 02:27:55 +01:00
Thorsten Claus
9c0f8cdf11
Dont send all likes with list of comments
Due to historic reasons with a comment the list of all likes was sent to the frontend.
This is needed just to detect if one of the likes is current users like.
So if sending just the own like, the frontend can do it's job.

When the frontend is refactured in any way, post and comment like handling should be improved.
2023-11-13 02:27:55 +01:00
Thorsten Claus
c2a2fb63b0
In API dont fetch liked from all comments 2023-11-13 02:27:55 +01:00
Thorsten Claus
67f8ba5d57
Refacor files namespaces 2023-11-13 02:27:55 +01:00
Thorsten Claus
9b19be18f2
Adding eventhandler for Mobile views 2023-11-13 02:26:59 +01:00
Thorsten Claus
06a0dc68a9
Enabled likes-on-comments in mobile view 2023-11-13 02:26:59 +01:00