We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1213b48 commit 57beb36Copy full SHA for 57beb36
Block/Post/View/Opengraph.php
@@ -48,7 +48,7 @@ public function getDescription()
48
$content = trim($this->stripTags($this->getPost()->getContent()));
49
$max = 300;
50
if (mb_strlen($content) > $max) {
51
- $content = mb_substr($content, $max);
+ $content = mb_substr($content, 0, $max);
52
}
53
54
return $content;
Model/Post.php
@@ -222,7 +222,7 @@ public function getMetaDescription()
222
223
$desc = strip_tags($desc);
224
if (mb_strlen($desc) > 160) {
225
- $desc = mb_substr($desc, 160);
+ $desc = mb_substr($desc, 0, 160);
226
227
228
return $desc;
0 commit comments