diff options
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"; } |