Disabling some features for several networks

2022.09-rc
Michael Vogel 2014-03-02 00:50:06 +01:00
rodzic 9c87e00dd3
commit dc2e60d498
1 zmienionych plików z 20 dodań i 0 usunięć

Wyświetl plik

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