aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-10-12 21:22:42 +0200
committerMax Kostikov <max@kostikov.co>2019-10-12 21:22:42 +0200
commite4c57e80318b6e95751f825a9a7c0bf63f69f35d (patch)
tree74092e313f5cfa4bc66195ba46907b99032661d1
parent6a25548097dbf65936519fd078ca4b3065ceadae (diff)
downloadvolse-hubzilla-e4c57e80318b6e95751f825a9a7c0bf63f69f35d.tar.gz
volse-hubzilla-e4c57e80318b6e95751f825a9a7c0bf63f69f35d.tar.bz2
volse-hubzilla-e4c57e80318b6e95751f825a9a7c0bf63f69f35d.zip
Update opengraph.php
-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";
}