More info to Link previews

This commit is contained in:
Michał Gdula 2023-04-22 09:02:05 +00:00
parent bb7b9fb2c3
commit 2af2a36b74
5 changed files with 13 additions and 5 deletions

View file

@ -2,10 +2,12 @@
{% block head %}
{% if user.picture %}
<meta property="og:image" content="{{ url_for('media_api.media', path='pfp/' + user.picture) }}"/>
<meta name="twitter:image" content="{{ url_for('media_api.media', path='pfp/' + user.picture) }}">
{% endif %}
{% if user.colour %}
<meta name="theme-color" content="rgb({{ user.colour.0 }}, {{ user.colour.1 }}, {{ user.colour.2 }})"/>
{% endif %}
<meta name="twitter:card" content="summary">
<script type="text/javascript">
function moreInfo() {