use Friendica\DI;
use Friendica\Model\APContact;
use Friendica\Model\Contact;
+use Friendica\Model\Conversation;
use Friendica\Model\Event;
use Friendica\Model\Item;
use Friendica\Model\Mail;
$item['owner-link'] = $activity['actor'];
$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['protocol'] = $activity['protocol'];
+ $item['protocol'] = Conversation::PARCEL_ACTIVITYPUB;
$item['conversation-href'] = $activity['context'] ?? '';
$item['conversation-uri'] = $activity['conversation'] ?? '';
}
use Friendica\Core\Protocol;
use Friendica\Model\Contact;
use Friendica\Model\APContact;
-use Friendica\Model\Conversation;
use Friendica\Model\Item;
use Friendica\Model\User;
use Friendica\Protocol\Activity;
if (!empty($body)) {
$object_data['raw'] = $body;
- $object_data['protocol'] = Conversation::PARCEL_ACTIVITYPUB;
}
// Internal flag for thread completion. See Processor.php