photo upload: pass in the contact_allow and resource_id via include/attach.php

This commit is contained in:
redmatrix
2015-06-15 19:52:17 -07:00
parent 8c7472c6c3
commit 2adc7a51ad
4 changed files with 9 additions and 5 deletions

View File

@@ -298,7 +298,7 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota {
if($is_photo) {
require_once('include/photos.php');
$args = array( 'data' => @file_get_contents($f));
$args = array( 'data' => @file_get_contents($f), 'resource_id' => $hash);
$p = photo_upload($c[0],get_app()->get_observer(),$args);
}

View File

@@ -155,7 +155,7 @@ class RedFile extends DAV\Node implements DAV\IFile {
);
if($is_photo) {
$args = array( 'data' => @file_get_contents($fname));
$args = array( 'data' => @file_get_contents($fname), 'resource_id' => $this->data['hash']);
$p = photo_upload($c[0],$this->auth->observer,$args);
}