mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
remote deletion - check contact-id
This commit is contained in:
parent
89e81862ec
commit
75ad3219e6
1 changed files with 5 additions and 2 deletions
|
@ -262,10 +262,13 @@ function dfrn_notify_post(&$a) {
|
|||
$when = datetime_convert('UTC','UTC','now','Y-m-d H:i:s');
|
||||
}
|
||||
if($deleted) {
|
||||
$r = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
|
||||
|
||||
$r = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d AND `contact-id` = %d LIMIT 1",
|
||||
dbesc($uri),
|
||||
intval($importer['importer_uid'])
|
||||
intval($importer['importer_uid']),
|
||||
intval($importer['id'])
|
||||
);
|
||||
|
||||
if(count($r)) {
|
||||
$item = $r[0];
|
||||
|
||||
|
|
Loading…
Reference in a new issue