]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4201 from annando/commenting-on-tags
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 10 Jan 2018 21:13:53 +0000 (16:13 -0500)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2018 21:13:53 +0000 (16:13 -0500)
Commenting on postings from tags on the network page does work now

1  2 
src/Object/Post.php

diff --combined src/Object/Post.php
index 9ef00949f4f14d27f3ab81de8e3b688d0064232f,61200b58e938a81454df5fd6e48ac1da616cae8e..260afa66299fada73b4ded2c03e2e16c4decbd32
@@@ -1,11 -1,12 +1,11 @@@
  <?php
 -
  /**
   * @file src/Object/Post.php
   */
 -
  namespace Friendica\Object;
  
  use Friendica\BaseObject;
 +use Friendica\Content\ContactSelector;
  use Friendica\Content\Feature;
  use Friendica\Core\PConfig;
  use Friendica\Database\DBM;
@@@ -396,7 -397,7 +396,7 @@@ class Post extends BaseObjec
                        'thread_level'    => $thread_level,
                        'edited'          => $edited,
                        'network'         => $item["item_network"],
 -                      'network_name'    => network_to_name($item['item_network'], $profile_link),
 +                      'network_name'    => ContactSelector::networkToName($item['item_network'], $profile_link),
                        'received'        => $item['received'],
                        'commented'       => $item['commented'],
                        'created_date'    => $item['created'],
                        $uid = $conv->getProfileOwner();
                        $parent_uid = $this->getDataValue('uid');
  
-                       if (!empty($parent_uid) && empty($uid) && ($uid != $parent_uid)) {
+                       if (!is_null($parent_uid) && ($uid != $parent_uid)) {
                                $uid = $parent_uid;
                        }