Set post type if relay post was received via DFRN
This commit is contained in:
parent
6401bd7503
commit
8894f14b4e
|
@ -31,6 +31,7 @@ use Friendica\Core\Protocol;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
||||||
|
use Friendica\Model\Conversation;
|
||||||
use Friendica\Model\Event;
|
use Friendica\Model\Event;
|
||||||
use Friendica\Model\FContact;
|
use Friendica\Model\FContact;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
|
@ -2634,6 +2635,10 @@ class DFRN
|
||||||
$header["contact-id"] = $importer["id"];
|
$header["contact-id"] = $importer["id"];
|
||||||
$header["direction"] = $direction;
|
$header["direction"] = $direction;
|
||||||
|
|
||||||
|
if ($direction == Conversation::RELAY) {
|
||||||
|
$header['post-type'] = Item::PT_RELAY;
|
||||||
|
}
|
||||||
|
|
||||||
// Update the contact table if the data has changed
|
// Update the contact table if the data has changed
|
||||||
|
|
||||||
// The "atom:author" is only present in feeds
|
// The "atom:author" is only present in feeds
|
||||||
|
|
Loading…
Reference in a new issue