Commit Graph

7 Commits (ff32475f5f4a84ebf9619e7eef5bf8b4c075d0e2)

Author SHA1 Message Date
Claire 6d8e0fae3e
Merge pull request from GHSA-ccm4-vgcc-73hp
* Tighten allowed HTML in oEmbed-based preview cards

* Sanitize preview cards at render time

* Add `sandbox` attribute to preview card iframes
Claire c78280a8ce
Add translate="no" to outgoing mentions and links ()
Claire 3a6451c867
Add support for incoming rich text ()
Nick Schonning 717683d1c3
Autofix Rubocop remaining Layout rules ()
Nick Schonning 2177daeae9
Autofix Rubocop Style/RedundantBegin ()
Claire 15b88a83ab
Fix sanitizer parsing link text as HTML when stripping unsupported links ()
Claire a4dcaef53b
Prepare Mastodon for zeitwerk autoloader ()
* Prepare Mastodon for zeitwerk autoloader (Rails 6)

Add inflections and rename/move a few classes.

In particular, app/lib/exceptions.rb and app/lib/sanitize_config.rb
were manually loaded while still in autoload paths.

* Add inflection for Url → URL