diaspora/spec/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 Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
archive_importer Remove old stubs for /.well-known/host-meta 2022-07-23 00:21:06 +02:00
archive_validator Remove old stubs for /.well-known/host-meta 2022-07-23 00:21:06 +02:00
diaspora Escape mentions before parsing message with markdown 2022-10-06 00:45:50 +02:00
stream Merge branch 'next-minor' into develop 2021-06-30 23:27:57 +02:00
account_deleter_spec.rb Resend AccountMigration or AccountDeletion for closed recipients 2021-10-25 03:34:03 +02:00
archive_importer_spec.rb Remove old stubs for /.well-known/host-meta 2022-07-23 00:21:06 +02:00
archive_validator_spec.rb Implement archive import backend 2019-04-26 18:41:27 +03:00
configuration_methods_spec.rb fixes #8319 2021-11-08 18:47:01 +01:00
connection_tester_spec.rb Handle Faraday::ServerError (for example 502) as HTTPFailure 2022-07-24 17:20:21 +02:00
direction_detector_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
email_inviter_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
evil_query_spec.rb Fixup rubocop warnings from factory_bot introduction 2021-04-11 01:59:47 +02:00
i18n_interpolation_fallbacks_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
publisher_spec.rb Fix mention in #newhere message when invited by another person 2018-02-01 23:35:04 +01:00
pubsubhubbub_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00