aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-30 17:50:18 -0700
committerFriendika <info@friendika.com>2011-03-30 17:50:18 -0700
commit75ad3219e67b803bebf028b69d59f26c44571b3d (patch)
tree43a543a76af265bae9bdbe7008cab3f24f0c40eb /mod
parent89e81862ec316ae41e616dd8b9ddeb6ab18193c7 (diff)
downloadvolse-hubzilla-75ad3219e67b803bebf028b69d59f26c44571b3d.tar.gz
volse-hubzilla-75ad3219e67b803bebf028b69d59f26c44571b3d.tar.bz2
volse-hubzilla-75ad3219e67b803bebf028b69d59f26c44571b3d.zip
remote deletion - check contact-id
Diffstat (limited to 'mod')
-rw-r--r--mod/dfrn_notify.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php
index 2cc5a62f3..cd67df1d7 100644
--- a/mod/dfrn_notify.php
+++ b/mod/dfrn_notify.php
@@ -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];