0
0
Fork 0

Fix error when rendering public pages with media attachments (#16763)

* Add tests

* Fix error when rendering public pages with media attachments

* Add tests

* Fix tests

* Please CodeClimate
This commit is contained in:
Claire 2021-10-13 15:27:19 +02:00 committed by GitHub
parent 8818622feb
commit 5159ba26e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 102 additions and 38 deletions

View file

@ -217,7 +217,7 @@ class MediaAttachment < ApplicationRecord
end
def to_param
shortcode
shortcode.presence || id&.to_s
end
def focus=(point)