$id = DI::baseUrl() . '/activity/' . System::createGUID();
}
- $data = ['@context' => ActivityPub::CONTEXT,
+ $data = [
+ '@context' => ActivityPub::CONTEXT,
'id' => $id,
'type' => $activity,
'actor' => $owner['url'],
'object' => $profile['url'],
'instrument' => self::getService(),
- 'to' => [$profile['url']]];
+ 'to' => [$profile['url']],
+ ];
Logger::info('Sending activity ' . $activity . ' to ' . $target . ' for user ' . $uid);
$owner = User::getOwnerDataById($uid);
- $data = ['@context' => ActivityPub::CONTEXT,
+ $data = [
+ '@context' => ActivityPub::CONTEXT,
'id' => DI::baseUrl() . '/activity/' . System::createGUID(),
'type' => 'Follow',
'actor' => $owner['url'],
'object' => $object,
'instrument' => self::getService(),
- 'to' => [$profile['url']]];
+ 'to' => [$profile['url']],
+ ];
Logger::info('Sending follow ' . $object . ' to ' . $target . ' for user ' . $uid);
}
$owner = User::getOwnerDataById($uid);
- $data = ['@context' => ActivityPub::CONTEXT,
+ $data = [
+ '@context' => ActivityPub::CONTEXT,
'id' => DI::baseUrl() . '/activity/' . System::createGUID(),
'type' => 'Accept',
'actor' => $owner['url'],
'object' => $owner['url']
],
'instrument' => self::getService(),
- 'to' => [$profile['url']]];
+ 'to' => [$profile['url']],
+ ];
Logger::debug('Sending accept to ' . $target . ' for user ' . $uid . ' with id ' . $id);
}
$owner = User::getOwnerDataById($uid);
- $data = ['@context' => ActivityPub::CONTEXT,
+ $data = [
+ '@context' => ActivityPub::CONTEXT,
'id' => DI::baseUrl() . '/activity/' . System::createGUID(),
'type' => 'Reject',
'actor' => $owner['url'],
'object' => $owner['url']
],
'instrument' => self::getService(),
- 'to' => [$profile['url']]];
+ 'to' => [$profile['url']],
+ ];
Logger::debug('Sending reject to ' . $target . ' for user ' . $uid . ' with id ' . $id);
'object' => $profile['url']
],
'instrument' => self::getService(),
- 'to' => [$profile['url']]
+ 'to' => [$profile['url']],
];
Logger::info('Sending undo to ' . $target . ' for user ' . $uid . ' with id ' . $id);