mirror of
https://github.com/friendica/friendica
synced 2025-05-12 07:04:09 +02:00
Delivery of reshares
This commit is contained in:
parent
4b2acb74d5
commit
41f8796ffc
2 changed files with 29 additions and 1 deletions
|
@ -251,6 +251,17 @@ class Delivery extends BaseObject
|
|||
*/
|
||||
private static function deliverDFRN($cmd, $contact, $owner, $items, $target_item, $public_message, $top_level, $followup)
|
||||
{
|
||||
/*
|
||||
if (Diaspora::isReshare($target_item['body'])) {
|
||||
// Transmit Diaspora reshares only via Diaspora
|
||||
self::deliverDiaspora($cmd, $contact, $owner, $items, $target_item, $public_message, $top_level, $followup);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ActivityPub\Transmitter::::isAnnounce($target_item) && getby) {
|
||||
return;
|
||||
}
|
||||
*/
|
||||
Logger::info('Deliver ' . (($target_item['guid'] ?? '') ?: $target_item['id']) . ' via DFRN to ' . (($contact['addr'] ?? '') ?: $contact['url']));
|
||||
|
||||
if ($cmd == self::MAIL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue