sforkowany z mirror/friendica
applied coding convention rule
Signed-off-by: Roland Häder <roland@mxchange.org>2022.09-rc
rodzic
4c04a78d1b
commit
d242e72c65
|
@ -48,10 +48,8 @@ function do_like($item_id, $verb) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
logger('like: verb ' . $verb . ' item ' . $item_id);
|
logger('like: verb ' . $verb . ' item ' . $item_id);
|
||||||
|
|
||||||
|
|
||||||
$r = q("SELECT * FROM `item` WHERE `id` = '%s' OR `uri` = '%s' LIMIT 1",
|
$r = q("SELECT * FROM `item` WHERE `id` = '%s' OR `uri` = '%s' LIMIT 1",
|
||||||
dbesc($item_id),
|
dbesc($item_id),
|
||||||
dbesc($item_id)
|
dbesc($item_id)
|
||||||
|
@ -109,8 +107,7 @@ function do_like($item_id, $verb) {
|
||||||
|
|
||||||
if ((local_user()) && (local_user() == $owner_uid)) {
|
if ((local_user()) && (local_user() == $owner_uid)) {
|
||||||
$contact = $owner;
|
$contact = $owner;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||||
intval($_SESSION['visitor_id']),
|
intval($_SESSION['visitor_id']),
|
||||||
intval($owner_uid)
|
intval($owner_uid)
|
||||||
|
|
Ładowanie…
Reference in New Issue