Merge pull request #2347 from annando/1602-dfrn-forum

DFRN-Bugfix: Forums should work now
This commit is contained in:
Tobias Diekershoff 2016-02-12 08:16:10 +01:00
commit 810843763d

View File

@ -2053,10 +2053,14 @@ class dfrn {
if (($item["network"] != $author["network"]) AND ($author["network"] != "")) if (($item["network"] != $author["network"]) AND ($author["network"] != ""))
$item["network"] = $author["network"]; $item["network"] = $author["network"];
if($importer["rel"] == CONTACT_IS_FOLLOWER) { // This code was taken from the old DFRN code
logger("Contact ".$importer["id"]." is only follower. Quitting", LOGGER_DEBUG); // When activated, forums don't work.
return; // And: Why should we disallow commenting by followers?
} // the behaviour is now similar to the Diaspora part.
//if($importer["rel"] == CONTACT_IS_FOLLOWER) {
// logger("Contact ".$importer["id"]." is only follower. Quitting", LOGGER_DEBUG);
// return;
//}
} }
if ($entrytype == DFRN_REPLY_RC) { if ($entrytype == DFRN_REPLY_RC) {