mirror of
https://github.com/friendica/friendica
synced 2024-12-21 17:14:54 +01:00
Exchanged the hard coded comparism with the new function.
This commit is contained in:
parent
20fc0e5285
commit
8e19d36d27
1 changed files with 2 additions and 1 deletions
|
@ -82,6 +82,7 @@ class Item extends BaseObject {
|
||||||
*/
|
*/
|
||||||
public function get_template_data($alike, $dlike, $thread_level=1) {
|
public function get_template_data($alike, $dlike, $thread_level=1) {
|
||||||
require_once("mod/proxy.php");
|
require_once("mod/proxy.php");
|
||||||
|
require_once("include/diaspora.php");
|
||||||
|
|
||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
|
@ -300,7 +301,7 @@ class Item extends BaseObject {
|
||||||
|
|
||||||
// Diaspora isn't able to do likes on comments - but red does
|
// Diaspora isn't able to do likes on comments - but red does
|
||||||
if (($item["item_network"] == NETWORK_DIASPORA) AND ($indent == 'comment') AND
|
if (($item["item_network"] == NETWORK_DIASPORA) AND ($indent == 'comment') AND
|
||||||
!strstr($item["owner-link"], "/channel/") AND isset($buttons["like"]))
|
!diaspora_is_redmatrix($item["owner-link"]) AND isset($buttons["like"]))
|
||||||
unset($buttons["like"]);
|
unset($buttons["like"]);
|
||||||
|
|
||||||
// Facebook can like comments - but it isn't programmed in the connector yet.
|
// Facebook can like comments - but it isn't programmed in the connector yet.
|
||||||
|
|
Loading…
Reference in a new issue