-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #3385634 by nkoporec: Inline images are not displaying in social footer block #3509
Issue #3385634 by nkoporec: Inline images are not displaying in social footer block #3509
Conversation
51fcf9f
to
0f63249
Compare
Thanks for contributing towards Open Social! A maintainer from the @goalgorilla/maintainers group might not review all changes from all teams/contributors. Please don't be discouraged if it takes a while. In the meantime, we have some automated checks running and it might be that you will see our comments with some tips or requests to speed up the review process. 😊 |
8b408f7
to
8fcb674
Compare
8fcb674
to
2e315c9
Compare
@nkoporec, please add tests to this feature, this is a quick test win |
@tbsiqueira as discussed, I created a follow up for the test, as currently the |
8a3a347
to
fd1064e
Compare
… view inline images used in the footer block
fd1064e
to
e5b0451
Compare
Problem
When inserting an inline image in social footer block via the admin/config/opensocial/footer-block settings page, the image is not rendered after hitting the save button. The DOM element is there but the URL to the image is broken for other users (it works for the one that saved the form and uploaded the image).
The reason for this is that by default CKEditor will save inline images in the private directory, this ties the image to be only viewed/accessed by users who created this private image or have access to the entity that this image is attached to, since this form is not tied to any entity but rather its a custom implementation it means that only user who uploaded the inline image will have access to it.
Solution
Implement a hook_file_download() in social_footer module that allows access to private images used within the text field of the social footer block settings.
Issue tracker
https://www.drupal.org/project/social/issues/3385634
Theme issue tracker
[Required if applicable] Paste a link to the drupal.org theme issue queue item, either from socialbase or socialblue. If any other issue trackers were used, include links to those too.
How to test
Definition of done
Before merge
After merge
Screenshots
Before:
![image](https://private-user-images.githubusercontent.com/35064680/266040713-224381b2-be3e-4160-a800-9fe99aa166bc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2NzE4MzksIm5iZiI6MTcxOTY3MTUzOSwicGF0aCI6Ii8zNTA2NDY4MC8yNjYwNDA3MTMtMjI0MzgxYjItYmUzZS00MTYwLWE4MDAtOWZlOTlhYTE2NmJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDE0MzIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU1YzgyMDZiOGIyNDhjZWY1YTI0MTA1Y2ZiYTZiM2JkYTE2NjIxNTM3NDA3ODRiZjlhODM5YmEyZWI0YzJhNGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zoq8IqeQN8V2m5WMwtAUlAHT3Ar2T9tQPU5Gd3TLDmM)
After:
![image](https://private-user-images.githubusercontent.com/35064680/266040318-97f44d1c-9595-472f-8b74-96d515a35e17.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2NzE4MzksIm5iZiI6MTcxOTY3MTUzOSwicGF0aCI6Ii8zNTA2NDY4MC8yNjYwNDAzMTgtOTdmNDRkMWMtOTU5NS00NzJmLThiNzQtOTZkNTE1YTM1ZTE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDE0MzIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwMzEzMmJjYjliNmEyNzMwM2MxOWM5MzdkNGFjMzQxNDQzY2QyMzFmOGI5MDNhOTM4MDJlNTZhNzI1YTI5ZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VdZ-jledPKZ8S4JTuqMiKhmwXhprtWYxuQk_-M1wkMQ)
Release notes
Fixed an issue where inline images would not render correctly in social footer block.
Change Record
Translations