use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
+use Friendica\Model\Conversation;
use Friendica\Model\Event;
use Friendica\Model\FContact;
use Friendica\Model\Item;
$header["contact-id"] = $importer["id"];
$header["direction"] = $direction;
+ if ($direction == Conversation::RELAY) {
+ $header['post-type'] = Item::PT_RELAY;
+ }
+
// Update the contact table if the data has changed
// The "atom:author" is only present in feeds