Merge pull request #5866 from annando/ap-cleanup
AP: Avoid a misleading log entry / unneeded field removed
This commit is contained in:
commit
c9f1857c4a
2 changed files with 3 additions and 1 deletions
|
@ -196,12 +196,15 @@ class Processor
|
||||||
|
|
||||||
$item['network'] = Protocol::ACTIVITYPUB;
|
$item['network'] = Protocol::ACTIVITYPUB;
|
||||||
$item['private'] = !in_array(0, $activity['receiver']);
|
$item['private'] = !in_array(0, $activity['receiver']);
|
||||||
|
$item['author-link'] = $activity['author'];
|
||||||
$item['author-id'] = Contact::getIdForURL($activity['author'], 0, true);
|
$item['author-id'] = Contact::getIdForURL($activity['author'], 0, true);
|
||||||
|
|
||||||
if (empty($activity['thread-completion'])) {
|
if (empty($activity['thread-completion'])) {
|
||||||
|
$item['owner-link'] = $activity['actor'];
|
||||||
$item['owner-id'] = Contact::getIdForURL($activity['actor'], 0, true);
|
$item['owner-id'] = Contact::getIdForURL($activity['actor'], 0, true);
|
||||||
} else {
|
} else {
|
||||||
logger('Ignoring actor because of thread completion.', LOGGER_DEBUG);
|
logger('Ignoring actor because of thread completion.', LOGGER_DEBUG);
|
||||||
|
$item['owner-link'] = $item['author-link'];
|
||||||
$item['owner-id'] = $item['author-id'];
|
$item['owner-id'] = $item['author-id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -778,7 +778,6 @@ class Transmitter
|
||||||
|
|
||||||
$data['url'] = $item['plink'];
|
$data['url'] = $item['plink'];
|
||||||
$data['attributedTo'] = $item['author-link'];
|
$data['attributedTo'] = $item['author-link'];
|
||||||
$data['actor'] = $item['author-link'];
|
|
||||||
$data['sensitive'] = self::isSensitive($item['id']);
|
$data['sensitive'] = self::isSensitive($item['id']);
|
||||||
$data['context'] = self::fetchContextURLForItem($item);
|
$data['context'] = self::fetchContextURLForItem($item);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue