Fix: Private transmission via Diaspora to Friendica servers
This commit is contained in:
parent
3ca2dc70b3
commit
ec9b7af25b
1 changed files with 5 additions and 4 deletions
|
@ -3217,13 +3217,14 @@ class Diaspora
|
||||||
}
|
}
|
||||||
|
|
||||||
$logid = random_string(4);
|
$logid = random_string(4);
|
||||||
$dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]);
|
|
||||||
|
|
||||||
// Fetch the fcontact entry when there is missing data
|
// We always try to use the data from the fcontact table.
|
||||||
// Will possibly happen when data is transmitted to a DFRN contact
|
// This is important for transmitting data to Friendica servers.
|
||||||
if (empty($dest_url) && !empty($contact['addr'])) {
|
if (!empty($contact['addr'])) {
|
||||||
$fcontact = self::personByHandle($contact['addr']);
|
$fcontact = self::personByHandle($contact['addr']);
|
||||||
$dest_url = ($public_batch ? $fcontact["batch"] : $fcontact["notify"]);
|
$dest_url = ($public_batch ? $fcontact["batch"] : $fcontact["notify"]);
|
||||||
|
} else {
|
||||||
|
$dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$dest_url) {
|
if (!$dest_url) {
|
||||||
|
|
Loading…
Reference in a new issue