diaspora/spec
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
..
controllers Merge branch 'next-minor' into develop 2022-07-23 17:01:02 +02:00
fixtures Issue #8355: Adding webp as supported file format 2022-07-01 13:50:01 +02:00
helpers Merge branch 'next-minor' into develop 2022-07-20 21:34:39 +02:00
integration Remove old stubs for /.well-known/host-meta 2022-07-23 00:21:06 +02:00
javascripts Replace textchange with native input event 2022-07-17 22:49:29 +03:00
lib Escape mentions before parsing message with markdown 2022-10-06 00:45:50 +02:00
mailers Merge branch 'next-minor' into develop 2022-07-20 21:34:39 +02:00
models Merge branch 'next-minor' into develop 2022-07-24 17:22:41 +02:00
presenters Add xmppChat to NodeInfo 2.1 test for 0.7.x 2022-07-23 18:40:11 +02:00
serializers Merge branch 'next-minor' into develop 2021-11-23 00:56:41 +01:00
services Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
shared_behaviors Merge branch 'next-minor' into develop 2022-06-29 13:28:02 +02:00
spec Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
support Merge branch 'next-minor' into develop 2022-06-29 13:28:02 +02:00
views/status_messages Merge branch 'next-minor' into develop 2022-07-20 21:34:39 +02:00
workers Don't time travel in check_birthday_spec 2022-09-20 03:20:48 +02:00
configuration_methods_spec.rb
factories.rb Fixup rubocop warnings from factory_bot introduction 2021-04-11 01:59:47 +02:00
federation_callbacks_spec.rb Upgrade diaspora_federation to 1.0 2022-07-20 23:06:18 +02:00
helper_methods.rb
locale_spec.rb
spec_helper.rb Remove old stubs for /.well-known/host-meta 2022-07-23 00:21:06 +02:00