]> cat aescling's git repositories - mastodon.git/commit
Fix URL scanning in note length validator and preview card fetching (#15827)
authorClaire <claire.github-309c@sitedethib.com>
Wed, 3 Mar 2021 23:12:26 +0000 (00:12 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Mar 2021 23:12:26 +0000 (00:12 +0100)
commit5614e6724e5131f33197ecbc1998058e9794aae9
tree2922a476e07dce17322cc397f1870dd6a5e344a8
parent65db2625508c220fd3c0a1f37cdd2e13b6e02987
Fix URL scanning in note length validator and preview card fetching (#15827)

* Add tests

* Fix URL scanning in note length validator and preview card fetching
app/lib/language_detector.rb
app/services/fetch_link_card_service.rb
app/validators/note_length_validator.rb
app/validators/status_length_validator.rb
spec/services/fetch_link_card_service_spec.rb
spec/validators/note_length_validator_spec.rb [new file with mode: 0644]