]> git.mxchange.org Git - friendica.git/commitdiff
clear title and body of items on local delete
authorZach Prezkuta <fermion@gmx.com>
Fri, 6 Jul 2012 02:07:01 +0000 (20:07 -0600)
committerZach Prezkuta <fermion@gmx.com>
Fri, 6 Jul 2012 02:07:01 +0000 (20:07 -0600)
include/items.php

index f5821961b001022c92f5a9022ac2cf727f4f4f76..cf903ac13927e0399c18f36aa999d75c7159c495 100755 (executable)
@@ -2271,7 +2271,8 @@ function local_delivery($importer,$data) {
                                        }
 
                                        if($item['uri'] == $item['parent-uri']) {
-                                               $r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s'
+                                               $r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s',
+                                                       `body` = '', `title` = ''
                                                        WHERE `parent-uri` = '%s' AND `uid` = %d",
                                                        dbesc($when),
                                                        dbesc(datetime_convert()),
@@ -2280,7 +2281,8 @@ function local_delivery($importer,$data) {
                                                );
                                        }
                                        else {
-                                               $r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s' 
+                                               $r = q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s',
+                                                       `body` = '', `title` = ''
                                                        WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
                                                        dbesc($when),
                                                        dbesc(datetime_convert()),