]> git.mxchange.org Git - friendica.git/commitdiff
Uncomment some code in ItemContent::getPlaintextPost
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 22 Apr 2018 15:43:27 +0000 (11:43 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 22 Apr 2018 15:43:27 +0000 (11:43 -0400)
- I have no idea what I'm doing

src/Model/ItemContent.php

index fe256d3e76f6b81f8f73f2dfc0e10c7b8d01fdcc..21dbd34d0a4feb7a7e62d5631c51992123933056 100644 (file)
@@ -160,9 +160,8 @@ class ItemContent extends BaseObject
                                } elseif (!isset($post['url'])) {
                                        $limit = $limit - 23;
                                        $post['url'] = $item['plink'];
-                                       // Which purpose has this line? It is now uncommented, but left as a reminder
-                                       //} elseif (strpos($b['body'], '[share') !== false) {
-                                       //      $post['url'] = $b['plink'];
+                               } elseif (strpos($item['body'], '[share') !== false) {
+                                       $post['url'] = $item['plink'];
                                } elseif (PConfig::get($item['uid'], 'system', 'no_intelligent_shortening')) {
                                        $post['url'] = $item['plink'];
                                }