Some precaution to avoid overwriting of existing data with blanks

This commit is contained in:
Michael Vogel
2015-07-12 11:19:40 +02:00
parent fe137a92ef
commit 0ac75deee1
3 changed files with 15 additions and 2 deletions
+3
View File
@@ -308,6 +308,9 @@ class Item extends BaseObject {
if (($item["item_network"] == NETWORK_FACEBOOK) AND ($indent == 'comment') AND isset($buttons["like"]))
unset($buttons["like"]);
// Likes don't federate at OStatus
if (($item["item_network"] == NETWORK_OSTATUS) AND isset($buttons["like"]))
unset($buttons["like"]);
$tmp_item = array(
'template' => $this->get_template(),