sforkowany z mirror/friendica
Disabling some features for several networks
rodzic
9c87e00dd3
commit
dc2e60d498
|
@ -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(),
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue