]> git.mxchange.org Git - friendica.git/commitdiff
AP hast to be enabled here as well
authorMichael <heluecht@pirati.ca>
Sun, 30 Sep 2018 21:23:40 +0000 (21:23 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 30 Sep 2018 21:23:40 +0000 (21:23 +0000)
mod/item.php

index 20c0aaf747e25edfa7dfdc0bf955aca1c9039240..d73bbc25d9622f0d165bb3c05b42cd77d2e80492 100644 (file)
@@ -159,7 +159,7 @@ function item_post(App $a) {
        }
 
        // Allow commenting if it is an answer to a public post
-       $allow_comment = local_user() && ($profile_uid == 0) && $parent && in_array($parent_item['network'], [Protocol::OSTATUS, Protocol::DIASPORA, Protocol::DFRN]);
+       $allow_comment = local_user() && ($profile_uid == 0) && $parent && in_array($parent_item['network'], [Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA, Protocol::DFRN]);
 
        // Now check that valid personal details have been provided
        if (!can_write_wall($profile_uid) && !$allow_comment) {