From: Michael Vogel Date: Sat, 1 Mar 2014 23:50:06 +0000 (+0100) Subject: Disabling some features for several networks X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc2e60d498249878f0f28df7545c51737c207874;p=friendica.git Disabling some features for several networks --- diff --git a/object/Item.php b/object/Item.php index 0dfe915dea..2cb131f1a7 100644 --- a/object/Item.php +++ b/object/Item.php @@ -268,6 +268,26 @@ class Item extends BaseObject { $owner_name_e = $this->get_owner_name(); } + // Disable features that aren't available in several networks + if ($item["item_network"] != "dfrn") { + unset($buttons["dislike"]); + $tagger = ''; + } + + if ($item["item_network"] == "feed") + unset($buttons["like"]); + + if ($item["item_network"] == "mail") + unset($buttons["like"]); + + if (($item["item_network"] == "dspr") AND ($indent == 'comment')) + unset($buttons["like"]); + + // Facebook can like comments - but it isn't programmed in the connector yet. + if (($item["item_network"] == "face") AND ($indent == 'comment')) + unset($buttons["like"]); + + $tmp_item = array( 'template' => $this->get_template(),