aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-03 17:52:54 -0700
committerzotlabs <mike@macgirvin.com>2018-04-03 17:52:54 -0700
commit5ac0f371c748367b16fedde27edc9771b08bf4c6 (patch)
tree5d7f705f649360605fb2a54f00f6fc3e6eb887a8 /include
parentcf6d51bee84bfd147e36084b79c5bdc2093d0081 (diff)
downloadvolse-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
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php2
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;
}