diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-03 17:52:54 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-03 17:52:54 -0700 |
commit | 5ac0f371c748367b16fedde27edc9771b08bf4c6 (patch) | |
tree | 5d7f705f649360605fb2a54f00f6fc3e6eb887a8 | |
parent | cf6d51bee84bfd147e36084b79c5bdc2093d0081 (diff) | |
download | volse-hubzilla-5ac0f371c748367b16fedde27edc9771b08bf4c6.tar.gz volse-hubzilla-5ac0f371c748367b16fedde27edc9771b08bf4c6.tar.bz2 volse-hubzilla-5ac0f371c748367b16fedde27edc9771b08bf4c6.zip |
community tags: allow signature of either author or owner so that it stands a chance of working across multiple delivery chains
-rwxr-xr-x | include/items.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 62f1c6195..6ddab9bf8 100755 --- a/include/items.php +++ b/include/items.php @@ -2754,7 +2754,7 @@ function item_community_tag($channel,$item) { $pitem = $items[0]; $auth = get_iconfig($item,'system','communitytagauth'); if($auth) { - if(rsa_verify('tagauth.' . $item['mid'],base64url_decode($auth),$pitem['owner']['xchan_pubkey'])) { + if(rsa_verify('tagauth.' . $item['mid'],base64url_decode($auth),$pitem['owner']['xchan_pubkey']) || rsa_verify('tagauth.' . $item['mid'],base64url_decode($auth),$pitem['author']['xchan_pubkey'])) { logger('tag_deliver: tagging the post: ' . $channel['channel_name']); $tag_the_post = true; } |