mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-17 10:03:45 +00:00
Return values
This commit is contained in:
parent
5c668bd6e9
commit
476302afc5
1 changed files with 5 additions and 2 deletions
|
@ -1044,13 +1044,16 @@ function pumpio_dodelete(&$a, $uid, $self, $post, $own_id) {
|
||||||
// Two queries for speed issues
|
// Two queries for speed issues
|
||||||
$condition = ['uri' => $post->object->id, 'uid' => $uid];
|
$condition = ['uri' => $post->object->id, 'uid' => $uid];
|
||||||
if (dba::exists('item', $condition)) {
|
if (dba::exists('item', $condition)) {
|
||||||
return Item::delete($condition);
|
Item::delete($condition);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$condition = ['extid' => $post->object->id, 'uid' => $uid];
|
$condition = ['extid' => $post->object->id, 'uid' => $uid];
|
||||||
if (dba::exists('item', $condition)) {
|
if (dba::exists('item', $condition)) {
|
||||||
return Item::delete($condition);
|
Item::delete($condition);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcompletion = true) {
|
function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcompletion = true) {
|
||||||
|
|
Loading…
Reference in a new issue