diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-16 18:19:03 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-16 18:19:03 -0700 |
commit | cf11ba1147355f0583016db2cec4f7793e656dfc (patch) | |
tree | 7172154f903c7ee086d5359a81ba7aeb873bbde0 /include/photos.php | |
parent | 446b5550a2c2b52bb31db5b99602c42b9dfdade6 (diff) | |
download | volse-hubzilla-cf11ba1147355f0583016db2cec4f7793e656dfc.tar.gz volse-hubzilla-cf11ba1147355f0583016db2cec4f7793e656dfc.tar.bz2 volse-hubzilla-cf11ba1147355f0583016db2cec4f7793e656dfc.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 c0f0ec8a9..b4d297bfd 100644 --- a/include/photos.php +++ b/include/photos.php @@ -340,21 +340,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; } |