]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Fallback when there is no nick name
[friendica.git] / mod / item.php
index 8c5a479646ec992c98bd0b701e2a3cbdc51d012a..2ade524a0500c53dd97e48e42183c5cdf3c6edd4 100644 (file)
@@ -160,6 +160,9 @@ function item_post(&$a) {
                                logger('no contact found: '.print_r($thrparent, true), LOGGER_DEBUG);
                        } else
                                logger('parent contact: '.print_r($parent_contact, true), LOGGER_DEBUG);
+
+                       if ($parent_contact["nick"] == "")
+                               $parent_contact["nick"] = $parent_contact["name"];
                }
        }
 
@@ -844,9 +847,6 @@ function item_post(&$a) {
                // NOTREACHED
        }
 
-       // Store the guid and other relevant data
-       add_guid($datarray);
-
        $post_id = $r[0]['id'];
        logger('mod_item: saved item ' . $post_id);