]> git.mxchange.org Git - friendica.git/commitdiff
spelling: encapsulated
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Wed, 22 Mar 2023 03:17:38 +0000 (23:17 -0400)
committerJosh Soref <2119212+jsoref@users.noreply.github.com>
Sun, 26 Mar 2023 20:03:23 +0000 (16:03 -0400)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
src/Content/Item.php

index 45890f4047aff5f854b605025495578bcc95fbf0..0a606e057a39b2c26f994114be90b9d6cf3eef61 100644 (file)
@@ -685,11 +685,11 @@ class Item
 
                // If it is a reshared post then reformat it to avoid display problems with two share elements
                if (!empty($shared)) {
-                       if (!empty($shared['guid']) && ($encaspulated_share = $this->createSharedPostByGuid($shared['guid'], true))) {
+                       if (!empty($shared['guid']) && ($encapsulated_share = $this->createSharedPostByGuid($shared['guid'], true))) {
                                if (!empty(BBCode::fetchShareAttributes($item['body']))) {
-                                       $item['body'] = preg_replace("/\[share.*?\](.*)\[\/share\]/ism", $encaspulated_share, $item['body']);
+                                       $item['body'] = preg_replace("/\[share.*?\](.*)\[\/share\]/ism", $encapsulated_share, $item['body']);
                                } else {
-                                       $item['body'] .= $encaspulated_share;
+                                       $item['body'] .= $encapsulated_share;
                                }
                        }
                        $item['body'] = HTML::toBBCode(BBCode::convertForUriId($item['uri-id'], $item['body'], BBCode::ACTIVITYPUB));