From 5ac0f371c748367b16fedde27edc9771b08bf4c6 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 3 Apr 2018 17:52:54 -0700 Subject: community tags: allow signature of either author or owner so that it stands a chance of working across multiple delivery chains --- include/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3