Set post type if relay post was received via DFRN

This commit is contained in:
Michael 2021-01-09 18:17:49 +00:00
parent 6401bd7503
commit 8894f14b4e
1 changed files with 5 additions and 0 deletions

View File

@ -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