Skip to content
Snippets Groups Projects
Commit cf51c412 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

report image size (bytewise) in OG meta

parent 0834b152
Branches
Tags
No related merge requests found
......@@ -131,6 +131,7 @@ class PreviewUrlResource(BaseMediaResource):
self.server_name, media_info['filesystem_id']
),
"og:image:type": media_info['media_type'],
"matrix:image:size": media_info['media_length'],
}
if dims:
......@@ -269,6 +270,7 @@ class PreviewUrlResource(BaseMediaResource):
self.server_name, image_info['filesystem_id']
)
og["og:image:type"] = image_info['media_type']
og["matrix:image:size"] = image_info['media_length']
else:
del og["og:image"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment