mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Merge pull request #4737 from annando/fix-public-comment
Commenting on public posts from Friendica users is now possible again
This commit is contained in:
commit
64ea49788e
1 changed files with 6 additions and 4 deletions
|
@ -3264,13 +3264,15 @@ class Diaspora
|
||||||
|
|
||||||
$logid = random_string(4);
|
$logid = random_string(4);
|
||||||
|
|
||||||
|
$dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]);
|
||||||
|
|
||||||
// We always try to use the data from the fcontact table.
|
// We always try to use the data from the fcontact table.
|
||||||
// This is important for transmitting data to Friendica servers.
|
// This is important for transmitting data to Friendica servers.
|
||||||
if (!empty($contact['addr']) && ($contact['network'] != NETWORK_DIASPORA)) {
|
if (!empty($contact['addr'])) {
|
||||||
$fcontact = self::personByHandle($contact['addr']);
|
$fcontact = self::personByHandle($contact['addr']);
|
||||||
$dest_url = ($public_batch ? $fcontact["batch"] : $fcontact["notify"]);
|
if (!empty($fcontact)) {
|
||||||
} else {
|
$dest_url = ($public_batch ? $fcontact["batch"] : $fcontact["notify"]);
|
||||||
$dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$dest_url) {
|
if (!$dest_url) {
|
||||||
|
|
Loading…
Reference in a new issue