]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
Improve expectation for not modified check in theme/vier/style
[friendica.git] / include / conversation.php
index 40ed2259764cce6d50a58cd75534f74d4a60f3ef..22cd71957b17e2dc00317955fbbe6065f008b312 100644 (file)
@@ -756,6 +756,7 @@ function conversation_fetch_comments($thread_items, $pinned, $causer) {
                                break;
                        case Item::PT_ANNOUNCEMENT:
                                if (!empty($row['causer-id']) && DI::pConfig()->get(local_user(), 'system', 'display_resharer')) {
+                                       $row['owner-id'] = $row['causer-id'];
                                        $row['owner-link'] = $row['causer-link'];
                                        $row['owner-avatar'] = $row['causer-avatar'];
                                        $row['owner-name'] = $row['causer-name'];
@@ -833,7 +834,7 @@ function conversation_add_children(array $parents, $block_authors, $order, $uid)
                        $condition = ["`item`.`parent-uri` = ? AND `item`.`uid` IN (0, ?) AND (`vid` != ? OR `vid` IS NULL)",
                                $parent['uri'], $uid, Verb::getID(Activity::FOLLOW)];
                        $causer = 0;
-                       }
+               }
                $items = conversation_fetch_items($parent, $items, $condition, $block_authors, $params, $causer);
        }
 
@@ -851,12 +852,12 @@ function conversation_add_children(array $parents, $block_authors, $order, $uid)
 /**
  * Fetch conversation items
  *
- * @param array $parent
- * @param array $items
- * @param array $condition
- * @param boolean $block_authors
- * @param array $params
- * @param integer $causer
+ * @param array   $parent        Parent Item array
+ * @param array   $items         Item array
+ * @param array   $condition     SQL condition
+ * @param boolean $block_authors Don't show posts from contacts that are hidden (used on the community page)
+ * @param array   $params        SQL parameters
+ * @param integer $causer        Contact ID of the resharer
  * @return array
  */
 function conversation_fetch_items(array $parent, array $items, array $condition, bool $block_authors, array $params, int $causer) {