Liking of your own stuff wasn't possible/enable dislike for Diaspora
This commit is contained in:
parent
271f0629f0
commit
2df44eb084
|
@ -82,8 +82,9 @@ class Post extends BaseObject
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// You can always comment on Diaspora items
|
// You can always comment on Diaspora and OStatus items
|
||||||
if (($item['network'] == NETWORK_DIASPORA) && (local_user() == $item['uid'])) {
|
// The empty network can happen with your local (self) contact
|
||||||
|
if (in_array($item['network'], ['', NETWORK_OSTATUS, NETWORK_DIASPORA]) && (local_user() == $item['uid'])) {
|
||||||
$item['writable'] = true;
|
$item['writable'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,8 +322,7 @@ class Post extends BaseObject
|
||||||
$owner_name_e = $this->getOwnerName();
|
$owner_name_e = $this->getOwnerName();
|
||||||
|
|
||||||
// Disable features that aren't available in several networks
|
// Disable features that aren't available in several networks
|
||||||
/// @todo Add NETWORK_DIASPORA when it will pass this information
|
if (!in_array($item["item_network"], [NETWORK_DFRN, NETWORK_DIASPORA]) && isset($buttons["dislike"])) {
|
||||||
if (!in_array($item["item_network"], [NETWORK_DFRN]) && isset($buttons["dislike"])) {
|
|
||||||
unset($buttons["dislike"]);
|
unset($buttons["dislike"]);
|
||||||
$isevent = false;
|
$isevent = false;
|
||||||
$tagger = '';
|
$tagger = '';
|
||||||
|
|
Loading…
Reference in a new issue