parent
6189f6c8e7
commit
4ca68c7af0
151 changed files with 987 additions and 8742 deletions
|
@ -3,6 +3,7 @@
|
|||
use Friendica\App;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Protocol\Diaspora;
|
||||
|
||||
/**
|
||||
|
@ -71,7 +72,7 @@ function do_like($item_id, $verb) {
|
|||
dbesc($item_id)
|
||||
);
|
||||
|
||||
if (! $item_id || ! dbm::is_result($items)) {
|
||||
if (! $item_id || ! DBM::is_result($items)) {
|
||||
logger('like: unknown item ' . $item_id);
|
||||
return false;
|
||||
}
|
||||
|
@ -89,7 +90,7 @@ function do_like($item_id, $verb) {
|
|||
AND `contact`.`uid` = %d",
|
||||
intval($item['uid'])
|
||||
);
|
||||
if (dbm::is_result($owners)) {
|
||||
if (DBM::is_result($owners)) {
|
||||
$owner_self_contact = $owners[0];
|
||||
} else {
|
||||
logger('like: unknown owner ' . $item['uid']);
|
||||
|
@ -102,7 +103,7 @@ function do_like($item_id, $verb) {
|
|||
$contacts = q("SELECT * FROM `contact` WHERE `id` = %d",
|
||||
intval($author_id)
|
||||
);
|
||||
if (dbm::is_result($contacts)) {
|
||||
if (DBM::is_result($contacts)) {
|
||||
$author_contact = $contacts[0];
|
||||
} else {
|
||||
logger('like: unknown author ' . $author_id);
|
||||
|
@ -119,7 +120,7 @@ function do_like($item_id, $verb) {
|
|||
$contacts = q("SELECT * FROM `contact` WHERE `id` = %d",
|
||||
intval($item_contact_id)
|
||||
);
|
||||
if (dbm::is_result($contacts)) {
|
||||
if (DBM::is_result($contacts)) {
|
||||
$item_contact = $contacts[0];
|
||||
} else {
|
||||
logger('like: unknown item contact ' . $item_contact_id);
|
||||
|
@ -149,7 +150,7 @@ function do_like($item_id, $verb) {
|
|||
);
|
||||
|
||||
// If it exists, mark it as deleted
|
||||
if (dbm::is_result($existing_like)) {
|
||||
if (DBM::is_result($existing_like)) {
|
||||
$like_item = $existing_like[0];
|
||||
|
||||
// Already voted, undo it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue