We don't need to pass the protocol that way
This commit is contained in:
parent
a9896ecdb1
commit
1743682153
|
@ -29,6 +29,7 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
use Friendica\Model\APContact;
|
use Friendica\Model\APContact;
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
||||||
|
use Friendica\Model\Conversation;
|
||||||
use Friendica\Model\Event;
|
use Friendica\Model\Event;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Model\Mail;
|
use Friendica\Model\Mail;
|
||||||
|
@ -448,9 +449,9 @@ class Processor
|
||||||
$item['owner-link'] = $activity['actor'];
|
$item['owner-link'] = $activity['actor'];
|
||||||
$item['owner-id'] = Contact::getIdForURL($activity['actor'], 0, true);
|
$item['owner-id'] = Contact::getIdForURL($activity['actor'], 0, true);
|
||||||
|
|
||||||
if (!empty($activity['raw']) && isset($activity['protocol'])) {
|
if (!empty($activity['raw'])) {
|
||||||
$item['source'] = $activity['raw'];
|
$item['source'] = $activity['raw'];
|
||||||
$item['protocol'] = $activity['protocol'];
|
$item['protocol'] = Conversation::PARCEL_ACTIVITYPUB;
|
||||||
$item['conversation-href'] = $activity['context'] ?? '';
|
$item['conversation-href'] = $activity['context'] ?? '';
|
||||||
$item['conversation-uri'] = $activity['conversation'] ?? '';
|
$item['conversation-uri'] = $activity['conversation'] ?? '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,6 @@ use Friendica\Core\Logger;
|
||||||
use Friendica\Core\Protocol;
|
use Friendica\Core\Protocol;
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
||||||
use Friendica\Model\APContact;
|
use Friendica\Model\APContact;
|
||||||
use Friendica\Model\Conversation;
|
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Model\User;
|
use Friendica\Model\User;
|
||||||
use Friendica\Protocol\Activity;
|
use Friendica\Protocol\Activity;
|
||||||
|
@ -355,7 +354,6 @@ class Receiver
|
||||||
|
|
||||||
if (!empty($body)) {
|
if (!empty($body)) {
|
||||||
$object_data['raw'] = $body;
|
$object_data['raw'] = $body;
|
||||||
$object_data['protocol'] = Conversation::PARCEL_ACTIVITYPUB;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Internal flag for thread completion. See Processor.php
|
// Internal flag for thread completion. See Processor.php
|
||||||
|
|
Loading…
Reference in a new issue