aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-22 21:04:54 -0800
committerfriendica <info@friendica.com>2015-01-22 21:04:54 -0800
commit4c2a1e572a03e253f05f03e400af26d403cbda32 (patch)
treeedf7afa0bb97dfb9c8ea598a28c3e6281a65ec90 /mod/photos.php
parent6e0e3b2433fc426b758a55811f56536d58705813 (diff)
downloadvolse-hubzilla-4c2a1e572a03e253f05f03e400af26d403cbda32.tar.gz
volse-hubzilla-4c2a1e572a03e253f05f03e400af26d403cbda32.tar.bz2
volse-hubzilla-4c2a1e572a03e253f05f03e400af26d403cbda32.zip
start on item_restrict conversion
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 216a562c7..5b86da2a1 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -180,19 +180,8 @@ function photos_post(&$a) {
intval($page_owner_uid)
);
if(count($i)) {
- q("UPDATE `item` SET item_restrict = (item_restrict | %d), `edited` = '%s', `changed` = '%s' WHERE `parent_mid` = '%s' AND `uid` = %d",
- intval(ITEM_DELETED),
- dbesc(datetime_convert()),
- dbesc(datetime_convert()),
- dbesc($i[0]['mid']),
- intval($page_owner_uid)
- );
-
+ drop_item($i[0]['id'],true,DROPITEM_PHASE1);
$url = $a->get_baseurl();
- $drop_id = intval($i[0]['id']);
-
- if($i[0]['visible'])
- proc_run('php',"include/notifier.php","drop","$drop_id");
}
}