diaspora/lib
Benjamin Neff 536c96f217
Escape mentions before parsing message with markdown
Usernames that contained underscores were parsed by markdown first. This
broke the diaspora IDs and also added weird html at places where it
wasn't needed. Escaping them before sending the message through the
markdown parser fixes this issue.

As underscores are the only allowed character that can be used for
markdown that is also allowed inside a diaspora ID, this escaping can be
kept pretty simple.

This only fixes it for the mobile UI at the moment, for the desktop UI
it's probably better to fix it in markdown-it.

Related to #7975
2022-10-06 00:45:50 +02:00
..
api OpenID Connect: ensure consistent issuer URL 2020-10-24 22:30:43 +02:00
archive_importer Fix sharing status with local users when importing archive 2021-09-29 05:05:28 +02:00
archive_validator Person.find_or_fetch_by_identifier never return nil 2021-08-16 00:24:59 +02:00
assets/javascripts Replace textchange with native input event 2022-07-17 22:49:29 +03:00
diaspora Escape mentions before parsing message with markdown 2022-10-06 00:45:50 +02:00
schemas Don't export chat_enabled flag anymore 2021-07-04 22:03:37 +02:00
stream Merge branch 'next-minor' into develop 2021-06-30 23:27:57 +02:00
tasks Merge branch 'next-minor' into develop 2022-07-20 21:34:39 +02:00
account_deleter.rb Fix deprecation warnings for rails 6.0 2022-07-20 21:26:58 +02:00
archive_importer.rb Allow to choose to overwrite settings and profile data 2021-11-23 01:48:33 +01:00
archive_validator.rb Implement archive import backend 2019-04-26 18:41:27 +03:00
bookmarklet_renderer.rb Upgrade to sprockets 4 2022-07-20 21:26:40 +02:00
configuration_methods.rb fixes #8319 2021-11-08 18:47:01 +01:00
connection_tester.rb Merge branch 'next-minor' into develop 2022-07-24 17:22:41 +02:00
diaspora.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
direction_detector.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
email_inviter.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
error_page_renderer.rb Fix rendering of error pages to remove deprecation warning for rails 6.0 2022-07-20 21:26:58 +02:00
evil_query.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
i18n_interpolation_fallbacks.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
node_info.rb Add parsing of newer versions of NodeInfo 2022-07-23 16:59:41 +02:00
photo_exporter.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
publisher.rb Fix mention in #newhere message when invited by another person 2018-02-01 23:35:04 +01:00
pubsubhubbub.rb Upgrade diaspora_federation to 1.0 2022-07-20 23:06:18 +02:00
share_visibility_converter.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
sidekiq_middlewares.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
stream.rb Adds a local-public tag on the sidebar that shows all posts local to this pod 2021-04-18 13:11:25 +02:00