diaspora/app/controllers
Benjamin Neff cbbb0a55c2
Add redirect to mobile-only photo URL when in desktop UI
This URL is only used in the mobile UI, but when somebody then copies
the link and sends it to somebody on the desktop UI, they don't see
anything. So lets just redirect to the post containing the photo, so
there is at least something to show.

If there is no linked post, just redirect to the image instead.

Fixes #8352
2022-10-30 00:32:31 +02:00
..
admin
api
admins_controller.rb
application_controller.rb
aspect_memberships_controller.rb
aspects_controller.rb
blocks_controller.rb
comments_controller.rb
contacts_controller.rb
conversation_visibilities_controller.rb
conversations_controller.rb
help_controller.rb
home_controller.rb
invitation_codes_controller.rb
invitations_controller.rb
likes_controller.rb
links_controller.rb
manifest_controller.rb
messages_controller.rb
node_info_controller.rb
notifications_controller.rb
participations_controller.rb
people_controller.rb
photos_controller.rb
poll_participations_controller.rb
posts_controller.rb
profiles_controller.rb
registrations_controller.rb
report_controller.rb
reshares_controller.rb
search_controller.rb
services_controller.rb
sessions_controller.rb
share_visibilities_controller.rb
status_messages_controller.rb
streams_controller.rb
tag_followings_controller.rb
tags_controller.rb
terms_controller.rb
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