redphotos updates

This commit is contained in:
redmatrix 2015-08-26 23:00:33 -07:00
parent 2bce61d18b
commit 58ffa31e91

View File

@ -281,7 +281,14 @@ function photo_upload($channel, $observer, $args) {
$item['body'] = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']'
. $tag . z_root() . "/photo/{$photo_hash}-{$smallest}.".$ph->getExt() . '[/zmg]'
. '[/zrl]';
$item['sig'] = '';
if($item['author_xchan'] === $channel['channel_hash']) {
$item['sig'] = base64url_encode(rsa_sign($item['body'],$channel['channel_prvkey']));
$item['item_verified'] = 1;
}
else {
$item['sig'] = '';
}
$force = true;
}