diaspora/app/controllers/api/v1
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
..
aspects_controller.rb API: don't make error messages translatable 2020-02-02 18:04:11 +01:00
base_controller.rb Remove "Did you mean?" from api errors when a parameter is missing 2022-07-20 21:35:02 +02:00
comments_controller.rb API: return whether post or item was already reported or not 2020-02-09 11:04:59 +01:00
contacts_controller.rb API: don't make error messages translatable 2020-02-02 18:04:11 +01:00
conversations_controller.rb API: Add endpoint to toggle conversation read status 2020-11-30 18:03:38 +01:00
likes_controller.rb Simplify comment and post validation 2024-06-05 00:14:31 +02:00
messages_controller.rb API: Don't mark conversations as read when fetching its messages 2020-11-30 18:03:38 +01:00
notifications_controller.rb API: Fix fetching explicitly not only unread notifications 2020-02-09 11:03:55 +01:00
photos_controller.rb API: don't make error messages translatable 2020-02-02 18:04:11 +01:00
post_interactions_controller.rb API: Let hide endpoint take payload as documented and act according to it 2020-02-02 21:49:20 +01:00
posts_controller.rb API: allow post creation without a body when there are photos 2020-02-20 18:50:32 +01:00
reshares_controller.rb API: don't make error messages translatable 2020-02-02 18:04:11 +01:00
search_controller.rb Remove "Did you mean?" from api errors when a parameter is missing 2022-07-20 21:35:02 +02:00
streams_controller.rb Return API pagination links as headers rather than in the response body itself 2020-01-21 23:34:43 +01:00
tag_followings_controller.rb API: don't make error messages translatable 2020-02-02 18:04:11 +01:00
users_controller.rb Add API route to (un)block a user 2020-03-20 12:38:27 +01:00