From 8894f14b4eee571d785f64406882186393f18d77 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 Jan 2021 18:17:49 +0000 Subject: [PATCH] Set post type if relay post was received via DFRN --- src/Protocol/DFRN.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 0518695c0..26b68b15b 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -31,6 +31,7 @@ use Friendica\Core\Protocol; 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; @@ -2634,6 +2635,10 @@ class DFRN $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