diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-09-10 20:25:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 20:25:19 +0200 |
commit | 51837fe8ba2ed2ce191210d1d734fb27cb0329f9 (patch) | |
tree | ef3fc753f913619cc5d266ab6c06608811382f1c /tpl/vintage | |
parent | 90ea2cb62e8a5049fd71ac2988377a062cd3e020 (diff) | |
parent | e0e24335f7b72afb388fbb180596675fc1b2182c (diff) | |
download | Shaarli-51837fe8ba2ed2ce191210d1d734fb27cb0329f9.tar.gz Shaarli-51837fe8ba2ed2ce191210d1d734fb27cb0329f9.tar.zst Shaarli-51837fe8ba2ed2ce191210d1d734fb27cb0329f9.zip |
Fix undefined thumbnail in OpenGraph headers (#1363)
Fix undefined thumbnail in OpenGraph headers
Diffstat (limited to 'tpl/vintage')
-rw-r--r-- | tpl/vintage/includes.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 2efb6b10..0cabc985 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html | |||
@@ -19,7 +19,7 @@ | |||
19 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> | 19 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> |
20 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} | 20 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} |
21 | <meta property="og:description" content="{function="mb_substr(strip_tags($ogDescription), 0, 300)"}" /> | 21 | <meta property="og:description" content="{function="mb_substr(strip_tags($ogDescription), 0, 300)"}" /> |
22 | {if="$link.thumbnail"} | 22 | {if="!empty($link.thumbnail)"} |
23 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> | 23 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> |
24 | {/if} | 24 | {/if} |
25 | {if="!$hide_timestamps || $is_logged_in"} | 25 | {if="!$hide_timestamps || $is_logged_in"} |