aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-08-13 10:42:27 +0200
committerArthurHoaro <arthur@hoa.ro>2018-08-13 10:55:48 +0200
commita120fb2977331e0f7d7ffe05861ba179fdae8764 (patch)
treedb25468102f9deb9bff0ebe0efaa909810efad40 /plugins
parenta4f0509a77a39d1ac834d4967e3e8f245de6d68d (diff)
downloadShaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.tar.gz
Shaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.tar.zst
Shaarli-a120fb2977331e0f7d7ffe05861ba179fdae8764.zip
Add OpenGraph meta tags on permalink page
Includes: - og:title - og:type -> article - og:image -> if there is a thumbnail - og:url -> permalink - og:description -> first 300 chars of raw description - article:published_time - article:modified_time - article:tag -> one OG meta tag for each shaare tag Fixes #258
Diffstat (limited to 'plugins')
-rw-r--r--plugins/markdown/markdown.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php
index 821bb125..d4fb1f76 100644
--- a/plugins/markdown/markdown.php
+++ b/plugins/markdown/markdown.php
@@ -28,6 +28,7 @@ function hook_markdown_render_linklist($data, $conf)
28 $value = stripNoMarkdownTag($value); 28 $value = stripNoMarkdownTag($value);
29 continue; 29 continue;
30 } 30 }
31 $value['description_src'] = $value['description'];
31 $value['description'] = process_markdown( 32 $value['description'] = process_markdown(
32 $value['description'], 33 $value['description'],
33 $conf->get('security.markdown_escape', true), 34 $conf->get('security.markdown_escape', true),