-
Notifications
You must be signed in to change notification settings - Fork 5
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
News image description #401
Conversation
This mainly happens when registering for an event while developing on a personal machine.
Previously, on the deployment server, the requests were always marked as insecure, resulting in e.g. `request.scheme` being "http". This was motivated by Facebook not showing the image of an article that was embedded in a post (https://www.facebook.com/MAKENTNU/posts/701447270512461), which was (most likely) caused by the `og:image` meta tag (in the `<head>` tag of `base.html`) specifying an image URL with "http" instead of "https" (because of `request.scheme`, as mentioned above).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Codecov Report
@@ Coverage Diff @@
## dev #401 +/- ##
==========================================
- Coverage 82.74% 82.72% -0.03%
==========================================
Files 117 117
Lines 4150 4161 +11
==========================================
+ Hits 3434 3442 +8
- Misses 716 719 +3
Continue to review full report at Codecov.
|
This adds an
image_description
field to articles and events (which is inserted into thealt
attribute of the<img>
tags), which is useful for people using screen readers. It's also useful if the images don't load (for whatever reason), in which case the image description will be displayed instead.Additionally, a few minor changes: