diaspora/app/controllers
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
..
admin Adding total and active count to pod view 2022-07-31 00:19:41 +02:00
api Simplify comment and post validation 2024-06-05 00:14:31 +02:00
admins_controller.rb Remove links to deleted profiles in admin user stats 2020-03-21 19:14:56 +01:00
application_controller.rb Remove i18n-inflector-rails dependency 2023-06-09 01:13:16 +02:00
aspect_memberships_controller.rb Contacts API Feature complete with full tests 2018-12-01 15:21:16 -05:00
aspects_controller.rb Merge pull request #8069 from denschub/remove-chat 2019-10-25 01:32:37 +02:00
blocks_controller.rb Add API route to (un)block a user 2020-03-20 12:38:27 +01:00
comments_controller.rb Fix pronto in Ruby 2023-11-13 02:27:55 +01:00
contacts_controller.rb Mark non-attribute usage in SQL queries as safe. 2020-02-11 23:54:55 +01:00
conversation_visibilities_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
conversations_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
help_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
home_controller.rb Simplify /podmin redirect 2018-04-12 01:55:46 +02:00
invitation_codes_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
invitations_controller.rb Bump sidekiq, sidekiq-cron and migrate to redis-client 2023-06-28 01:19:34 +02:00
likes_controller.rb Fix pronto in Ruby 2023-11-13 02:27:55 +01:00
links_controller.rb Add LinksController 2018-07-11 01:24:28 +02:00
manifest_controller.rb Change wording of description in PWA manifest 2019-04-27 19:11:27 +02:00
messages_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
node_info_controller.rb Add a dummy route for /.well-known/host-meta 2022-07-23 00:17:06 +02:00
notifications_controller.rb Add notifications for likes on comments 2023-11-13 02:27:55 +01:00
participations_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
people_controller.rb Merge branch 'next-minor' into develop 2022-07-20 21:34:39 +02:00
photos_controller.rb Add redirect to mobile-only photo URL when in desktop UI 2022-10-30 00:32:31 +02:00
poll_participations_controller.rb Add Poll Voting Method to Interactions Endpoint 2018-12-16 11:06:27 -05:00
posts_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
profiles_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
registrations_controller.rb Use a partial to share code between mobile and desktop, add the new route to the RegistrationController, drop flash message for closed registrations 2019-05-12 00:25:36 +02:00
report_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
reshares_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
search_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
services_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
sessions_controller.rb Remove /user/auth_token route, this was a leftover from the chat 2022-02-27 23:06:24 +01:00
share_visibilities_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
status_messages_controller.rb StatusMessageController#create: respond 422 when aspect_ids are wrong 2018-03-25 08:31:32 +02:00
streams_controller.rb Fixing PR Rewview issues 2021-04-18 13:11:25 +02:00
tag_followings_controller.rb Fix error in TagFollowingsController#create when duplicate is created 2020-10-23 21:10:15 +02:00
tags_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
terms_controller.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
two_factor_authentications_controller.rb Use password to disable 2FA instead of a token 2019-04-30 22:51:51 +02:00
users_controller.rb Always strip exif data and drop user setting for it 2023-06-04 04:25:01 +02:00