diff options
author | Max Kostikov <max@kostikov.co> | 2019-10-12 21:22:42 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-10-12 21:22:42 +0200 |
commit | e4c57e80318b6e95751f825a9a7c0bf63f69f35d (patch) | |
tree | 74092e313f5cfa4bc66195ba46907b99032661d1 /include | |
parent | 6a25548097dbf65936519fd078ca4b3065ceadae (diff) | |
download | volse-hubzilla-e4c57e80318b6e95751f825a9a7c0bf63f69f35d.tar.gz volse-hubzilla-e4c57e80318b6e95751f825a9a7c0bf63f69f35d.tar.bz2 volse-hubzilla-e4c57e80318b6e95751f825a9a7c0bf63f69f35d.zip |
Update opengraph.php
Diffstat (limited to 'include')
-rw-r--r-- | include/opengraph.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/opengraph.php b/include/opengraph.php index b177673ac..ab1c90e57 100644 --- a/include/opengraph.php +++ b/include/opengraph.php @@ -41,8 +41,7 @@ $ogdesc = str_replace("\n", " ", $ogdesc); while (strpos($ogdesc, " ") !== false) $ogdesc = str_replace(" ", " ", $ogdesc); - if (substr($ogdesc, -1) != "\n") - $ogdesc = rtrim(substr($ogdesc, 0, strrpos($ogdesc, " ")), "?.,:;!-") . "..."; + $ogdesc = rtrim(substr($ogdesc, 0, strrpos($ogdesc, " ")), "?.,:;!-") . "..."; $ogtype = "article"; } |