aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-11-15 16:34:09 -0800
committerzotlabs <mike@macgirvin.com>2018-11-15 16:34:09 -0800
commit39d914c9dfe87021351cb2aad9feedd381e791ec (patch)
treef13c34440bc702085f7d7031a7d14ebb5e006285 /include/photos.php
parent8d2f4d9dfd90d218a68e0e36ccf537d800b09755 (diff)
downloadvolse-hubzilla-39d914c9dfe87021351cb2aad9feedd381e791ec.tar.gz
volse-hubzilla-39d914c9dfe87021351cb2aad9feedd381e791ec.tar.bz2
volse-hubzilla-39d914c9dfe87021351cb2aad9feedd381e791ec.zip
add item.uuid to relevant places
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/photos.php b/include/photos.php
index d5553b495..ae51703e0 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -441,11 +441,13 @@ function photo_upload($channel, $observer, $args) {
}
}
else {
- $mid = item_message_id();
+ $uuid = item_message_id();
+ $mid = z_root() . '/item/' . $uuid;
$arr = [
'aid' => $account_id,
'uid' => $channel_id,
+ 'uuid' => $uuid,
'mid' => $mid,
'parent_mid' => $mid,
'item_hidden' => $item_hidden,
@@ -827,12 +829,14 @@ function photos_create_item($channel, $creator_hash, $photo, $visible = false) {
$item_hidden = (($visible) ? 0 : 1 );
- $mid = item_message_id();
+ $uuid = item_message_id();
+ $mid = z_root() . '/item/' . $uuid;
$arr = array();
$arr['aid'] = $channel['channel_account_id'];
$arr['uid'] = $channel['channel_id'];
+ $arr['uuid'] = $uuid;
$arr['mid'] = $mid;
$arr['parent_mid'] = $mid;
$arr['item_wall'] = 1;