Properly include matrix:image:size OG tag
This commit is contained in:
parent
0381bf9599
commit
5a239e57b3
1 changed files with 2 additions and 0 deletions
|
@ -206,6 +206,8 @@ def preview_url(
|
||||||
)
|
)
|
||||||
if upload_response:
|
if upload_response:
|
||||||
og_tags[tag_name] = upload_response
|
og_tags[tag_name] = upload_response
|
||||||
|
if tag_name == "image":
|
||||||
|
og_tags["matrix:image:size"] = len(response_media.content)
|
||||||
logging.info("Uploaded media: %r" % _url)
|
logging.info("Uploaded media: %r" % _url)
|
||||||
else:
|
else:
|
||||||
logging.warning("Failed to upload media: %r (no returned mxc)", _url)
|
logging.warning("Failed to upload media: %r (no returned mxc)", _url)
|
||||||
|
|
Loading…
Reference in a new issue