aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/opengraph.php3
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";
}