mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
The post-reason / protocol is now filled in most cases
This commit is contained in:
parent
06a124338a
commit
b6da15557b
10 changed files with 69 additions and 29 deletions
|
@ -1830,8 +1830,6 @@ class DFRN
|
|||
|
||||
$item = $header;
|
||||
|
||||
$item['protocol'] = $protocol;
|
||||
|
||||
$item['source'] = $xml;
|
||||
|
||||
// Get the uri
|
||||
|
@ -2260,10 +2258,12 @@ class DFRN
|
|||
$header = [];
|
||||
$header['uid'] = $importer['importer_uid'];
|
||||
$header['network'] = Protocol::DFRN;
|
||||
$header['protocol'] = $protocol;
|
||||
$header['wall'] = 0;
|
||||
$header['origin'] = 0;
|
||||
$header['contact-id'] = $importer['id'];
|
||||
$header['direction'] = $direction;
|
||||
|
||||
$header = Diaspora::setDirection($header, $direction);
|
||||
|
||||
if ($direction === Conversation::RELAY) {
|
||||
$header['post-reason'] = Item::PR_RELAY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue