Attach all project pictures when viewing node
The Open Graph rendering code is not completely refactored yet, so it still requires a mix of project.picture_header and project.picture_16_9. By attaching all project pictures we prevent unexpected errors.
This commit is contained in:
parent
402f9f23b5
commit
15d5ac687c
@ -491,9 +491,9 @@ def view_node(project_url, node_id):
|
||||
extension_sidebar_links = ''
|
||||
og_picture = node.picture = utils.get_file(node.picture, api=api)
|
||||
if project:
|
||||
utils.attach_project_pictures(project, api)
|
||||
if not node.picture:
|
||||
og_picture = utils.get_file(project.picture_16_9, api=api)
|
||||
project.picture_square = utils.get_file(project.picture_square, api=api)
|
||||
og_picture = project.picture_16_9
|
||||
navigation_links = project_navigation_links(project, api)
|
||||
extension_sidebar_links = current_app.extension_sidebar_links(project)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user