Merge pull request #12390 from annando/fixes

Only reshare the author's posts on `MIRROR_NATIVE_RESHARE`
This commit is contained in:
Hypolite Petovan 2022-12-11 15:05:47 -05:00 committed by GitHub
commit baf2f7565a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -165,7 +165,7 @@ class Cron
Logger::info('Removing failed deliveries', ['inbox' => $delivery['inbox'], 'failed' => $delivery['failed']]);
Post\Delivery::removeFailed($delivery['inbox']);
}
if ($delivery['failed'] == 0) {
$result = ActivityPub\Delivery::deliver($delivery['inbox']);
Logger::info('Directly deliver inbox', ['inbox' => $delivery['inbox'], 'result' => $result['success']]);