mirror of
https://github.com/friendica/friendica
synced 2025-04-29 02:24:22 +02:00
Merge remote-tracking branch 'upstream/2018.08-rc' into ap1
This commit is contained in:
commit
c083ae047c
69 changed files with 16128 additions and 16187 deletions
|
@ -1164,12 +1164,12 @@ class DFRN
|
|||
* @return int Deliver status. Negative values mean an error.
|
||||
* @todo Add array type-hint for $owner, $contact
|
||||
*/
|
||||
public static function deliver($owner, $contact, $atom, $dissolve = false)
|
||||
public static function deliver($owner, $contact, $atom, $dissolve = false, $legacy_transport = false)
|
||||
{
|
||||
$a = get_app();
|
||||
|
||||
// At first try the Diaspora transport layer
|
||||
if (!$dissolve) {
|
||||
if (!$dissolve && !$legacy_transport) {
|
||||
$ret = self::transmit($owner, $contact, $atom);
|
||||
if ($ret >= 200) {
|
||||
logger('Delivery via Diaspora transport layer was successful with status ' . $ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue