From d977ff78df84db21c5310cff9372ea589da65ab0 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 22 Apr 2018 11:43:27 -0400 Subject: [PATCH] Uncomment some code in ItemContent::getPlaintextPost - I have no idea what I'm doing --- src/Model/ItemContent.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Model/ItemContent.php b/src/Model/ItemContent.php index fe256d3e76..21dbd34d0a 100644 --- a/src/Model/ItemContent.php +++ b/src/Model/ItemContent.php @@ -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']; } -- 2.39.5