kopia lustrzana https://github.com/friendica/friendica
Set post type if relay post was received via DFRN
rodzic
6401bd7503
commit
8894f14b4e
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue