Set selected sites video embed aspect ratio with fitvids, plus some minor changes.
fitvids makes video embed responsive by adding some css. The change only calls fitvids if show_preview is set and limits the scan to the post being rendered. Since fitvids relies to the actual width and height of the iframe to calculate the ratio, preview.py now doesn't alter these attributes for selected video sites. Enabling this mod on a site will take effect on new video embeds only. The ones that have already been cached had their width set to 100%, which fitvids doesn't handle well (it calculates a ratio of 150%, which doesn't look too good). Would removing cached entries from content_oembedcache force a new rendering?
The PR also incudes two unrelated changes I have been running on my prod site for a ittle while:
- LANGUAGE_CODE can now be set with the SOCIALHOME_LANGUAGE_CODE env variable. Next, I need figure out how to set a dynamic preference with a user's preferred language.
- A very minor change: In the opengraph template, I added a bold tag to titles just because I think it looks better...
Please let me know if you agree with these changes and/or with using a single PR for unrelated but simple changes.