From 0994aaf8753ce898fcf4967a25fb990126d586ed Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 Oct 2018 20:00:57 +0000 Subject: [PATCH] AP: Avoid a misleading log entry / unneeded field removed --- src/Protocol/ActivityPub/Processor.php | 3 +++ src/Protocol/ActivityPub/Transmitter.php | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index a85123817a..05e59fd3c1 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -196,12 +196,15 @@ class Processor $item['network'] = Protocol::ACTIVITYPUB; $item['private'] = !in_array(0, $activity['receiver']); + $item['author-link'] = $activity['author']; $item['author-id'] = Contact::getIdForURL($activity['author'], 0, true); if (empty($activity['thread-completion'])) { + $item['owner-link'] = $activity['actor']; $item['owner-id'] = Contact::getIdForURL($activity['actor'], 0, true); } else { logger('Ignoring actor because of thread completion.', LOGGER_DEBUG); + $item['owner-link'] = $item['author-link']; $item['owner-id'] = $item['author-id']; } diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 476c63a58f..96c069e589 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -778,7 +778,6 @@ class Transmitter $data['url'] = $item['plink']; $data['attributedTo'] = $item['author-link']; - $data['actor'] = $item['author-link']; $data['sensitive'] = self::isSensitive($item['id']); $data['context'] = self::fetchContextURLForItem($item); -- 2.39.5