projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
922186b
)
Fallback when there is no nick name
author
Michael Vogel
<icarus@dabo.de>
Sun, 14 Feb 2016 14:08:49 +0000
(15:08 +0100)
committer
Michael Vogel
<icarus@dabo.de>
Sun, 14 Feb 2016 14:08:49 +0000
(15:08 +0100)
mod/item.php
patch
|
blob
|
history
diff --git
a/mod/item.php
b/mod/item.php
index 7e575a17e4f7e1d30c0949ddaf8ff9ae26f1fc3e..2ade524a0500c53dd97e48e42183c5cdf3c6edd4 100644
(file)
--- a/
mod/item.php
+++ b/
mod/item.php
@@
-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"];
}
}