-
- Downloads
formatter.ex: Use Phoenix.HTML for mention/hashtag generation
Unlike concatenating strings, this makes sure everything is escaped. Tests had to be changed because Phoenix.HTML runs attributes through Enum.sort before generation for whatever reason.
Showing
- lib/pleroma/formatter.ex 22 additions, 4 deletionslib/pleroma/formatter.ex
- test/formatter_test.exs 10 additions, 14 deletionstest/formatter_test.exs
- test/user_test.exs 1 addition, 1 deletiontest/user_test.exs
- test/web/common_api/common_api_utils_test.exs 3 additions, 3 deletionstest/web/common_api/common_api_utils_test.exs
- test/web/mastodon_api/controllers/account_controller/update_credentials_test.exs 2 additions, 2 deletions...ontrollers/account_controller/update_credentials_test.exs
- test/web/mastodon_api/controllers/notification_controller_test.exs 2 additions, 2 deletions...mastodon_api/controllers/notification_controller_test.exs
- test/web/twitter_api/twitter_api_test.exs 1 addition, 1 deletiontest/web/twitter_api/twitter_api_test.exs
Loading
Please register or sign in to comment