aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-11-08 13:10:24 -0800
committerzotlabs <mike@macgirvin.com>2019-11-08 13:10:24 -0800
commit00dd52317adb0f7db339649e076df331975a8398 (patch)
treed9559c19aafb1fb0ead583aeab662b1f9a94d2a5 /include
parent17522b31e9d7f092ecf5565ec28be270af7fad7b (diff)
parent163b1ee9f82985755f8e74fd144780ae08ce4030 (diff)
downloadvolse-hubzilla-00dd52317adb0f7db339649e076df331975a8398.tar.gz
volse-hubzilla-00dd52317adb0f7db339649e076df331975a8398.tar.bz2
volse-hubzilla-00dd52317adb0f7db339649e076df331975a8398.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include')
-rw-r--r--include/opengraph.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/opengraph.php b/include/opengraph.php
index ba97d4f4f..9de021d54 100644
--- a/include/opengraph.php
+++ b/include/opengraph.php
@@ -43,7 +43,7 @@
$ogdesc = str_replace("\n", " ", $ogdesc);
while (strpos($ogdesc, " ") !== false)
$ogdesc = str_replace(" ", " ", $ogdesc);
- $ogdesc = rtrim(substr($ogdesc, 0, strrpos($ogdesc, " ")), "?.,:;!-") . "...";
+ $ogdesc = (strlen($ogdesc) < 298 ? $ogdesc : rtrim(substr($ogdesc, 0, strrpos($ogdesc, " ")), "?.,:;!-") . "...");
$ogtype = "article";
}