1
0
Fork 0

Disabling some features for several networks

This commit is contained in:
Michael Vogel 2014-03-02 00:50:06 +01:00
parent 9c87e00dd3
commit dc2e60d498

View file

@ -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(),