Update ActivityPub Inbox update handling

pull/7243/head
Daniel Supernault 1 week ago
parent d2a45ee4d3
commit 13a8a255f6
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -23,7 +23,10 @@ trait HandlesUpdates
}
if ($activity['type'] === 'Note') {
if (Status::whereObjectUrl($activity['id'])->exists()) {
$status = Status::whereObjectUrl($activity['id'])->first();
$actor = Helpers::profileFetch(Helpers::pluckval($this->payload['actor']));
if ($status && $actor && (int) $status->profile_id === (int) $actor->id) {
StatusRemoteUpdatePipeline::dispatch($activity);
}
} elseif ($activity['type'] === 'Person') {

Loading…
Cancel
Save