]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Text/Plaintext.php
Merge pull request #13368 from MrPetovan/bug/13367-post-plink
[friendica.git] / src / Content / Text / Plaintext.php
index ce0a305fe70a361359706cad1c8924686c139b8a..86d720a02a4e33f85a4c3616ec053924d5ec45d6 100644 (file)
@@ -26,7 +26,6 @@ use Friendica\DI;
 use Friendica\Model\Photo;
 use Friendica\Model\Post;
 use Friendica\Util\Network;
-use Friendica\Util\Strings;
 
 class Plaintext
 {
@@ -138,6 +137,10 @@ class Plaintext
                                $abstract = BBCode::getAbstract($item['body'], Protocol::STATUSNET);
                                break;
 
+                       case BBCode::BLUESKY:
+                               $abstract = BBCode::getAbstract($item['body'], Protocol::BLUESKY);
+                               break;
+       
                        default: // We don't know the exact target.
                                // We fetch an abstract since there is a posting limit.
                                if ($limit > 0) {
@@ -180,7 +183,7 @@ class Plaintext
                                $msg = trim($post['description']);
                        }
 
-                       // If the link is already contained in the post, then it neeedn't to be added again
+                       // If the link is already contained in the post, then it needn't to be added again
                        // But: if the link is beyond the limit, then it has to be added.
                        if (($link != '') && strstr($msg, $link)) {
                                $pos = strpos($msg, $link);