Skip to content
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

OpenGraph: show event title #4288

Merged
merged 1 commit into from Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -18,6 +18,7 @@ Bugfixes
tickets are blocked (:issue:`4242`)
- Fix event access key prompt not showing when accessing an attachment link
(:issue:`4255`)
- Include event title in OpenGraph metadata (:issue:`4288`)
ThiefMaster marked this conversation as resolved.
Show resolved Hide resolved

Version 2.2.5
-------------
Expand Down
1 change: 1 addition & 0 deletions indico/modules/events/views.py
Expand Up @@ -97,6 +97,7 @@ def page_metadata(self):
metadata = super(WPEventBase, self).page_metadata
return {
'og': dict(metadata['og'], **{
'title': self.event.title,
'type': 'event',
'image': (self.event.logo_url if self.event.has_logo else
url_for('assets.image', filename='indico_square.png', _external=True)),
Expand Down