aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-24 04:16:27 -0700
committerfriendica <info@friendica.com>2012-03-24 04:16:27 -0700
commit3aacc119a1d25f7ab4089482bbba7419c1357524 (patch)
treef915e4e6195aa88073352f50f79cf1c1d676b08b /include/items.php
parent8c4fbc3b4d4c578485e7aeb5d7da4b2446002c3a (diff)
downloadvolse-hubzilla-3aacc119a1d25f7ab4089482bbba7419c1357524.tar.gz
volse-hubzilla-3aacc119a1d25f7ab4089482bbba7419c1357524.tar.bz2
volse-hubzilla-3aacc119a1d25f7ab4089482bbba7419c1357524.zip
block filed items from deletion
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index b96f88566..49e1ba97a 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1437,7 +1437,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0)
}
if($deleted && is_array($contact)) {
$r = q("SELECT `item`.*, `contact`.`self` FROM `item` left join `contact` on `item`.`contact-id` = `contact`.`id`
- WHERE `uri` = '%s' AND `item`.`uid` = %d AND `contact-id` = %d LIMIT 1",
+ WHERE `uri` = '%s' AND `item`.`uid` = %d AND `contact-id` = %d AND NOT `item`.`file` LIKE '%%[%%' LIMIT 1",
dbesc($uri),
intval($importer['uid']),
intval($contact['id'])
@@ -2038,7 +2038,7 @@ function local_delivery($importer,$data) {
if($deleted) {
$r = q("SELECT `item`.*, `contact`.`self` FROM `item` left join contact on `item`.`contact-id` = `contact`.`id`
- WHERE `uri` = '%s' AND `item`.`uid` = %d AND `contact-id` = %d LIMIT 1",
+ WHERE `uri` = '%s' AND `item`.`uid` = %d AND `contact-id` = %d AND NOT `item`.`file` LIKE '%%[%%' LIMIT 1",
dbesc($uri),
intval($importer['importer_uid']),
intval($importer['id'])