diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-16 18:19:03 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-03-29 13:50:27 +0200 |
commit | e9a5af6109a4a83a644432a2f39b47eb96303f4f (patch) | |
tree | 8708bb7a6719f2c316c8b015e43520ac56183a47 /include/photos.php | |
parent | fd6b32758edb67c7e711eddd4c468a6ef459c478 (diff) | |
download | volse-hubzilla-e9a5af6109a4a83a644432a2f39b47eb96303f4f.tar.gz volse-hubzilla-e9a5af6109a4a83a644432a2f39b47eb96303f4f.tar.bz2 volse-hubzilla-e9a5af6109a4a83a644432a2f39b47eb96303f4f.zip |
simplify the message signing spaghetti
Diffstat (limited to 'include/photos.php')
-rw-r--r-- | include/photos.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/photos.php b/include/photos.php index dff45a0bc..62c7f1c12 100644 --- a/include/photos.php +++ b/include/photos.php @@ -344,21 +344,6 @@ function photo_upload($channel, $observer, $args) { $item['tgt_type'] = ACTIVITY_OBJ_ALBUM; $item['target'] = json_encode($target); - $item['body'] = trim(z_input_filter($item['body'],$item['mimetype'],false)); - - 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'] = ''; - } - - // notify item_store or item_store_update that the input has been filtered and signed already. - // The signing procedure in those functions uses local_channel() which may not apply here. - - $item['input_filtered_signed'] = true; - $force = true; } |