mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 18:44:26 +02:00
Fix all errors in Protocol namespace
This commit is contained in:
parent
5469637f2b
commit
9638113244
10 changed files with 46 additions and 36 deletions
|
@ -573,11 +573,12 @@ class Transmitter
|
|||
$exclusive = false;
|
||||
$mention = false;
|
||||
$audience = [];
|
||||
$owner = false;
|
||||
|
||||
// Check if we should always deliver our stuff via BCC
|
||||
if (!empty($item['uid'])) {
|
||||
$owner = User::getOwnerDataById($item['uid']);
|
||||
if (!empty($owner)) {
|
||||
if (is_array($owner)) {
|
||||
$always_bcc = $owner['hide-friends'];
|
||||
$is_group = ($owner['account-type'] == User::ACCOUNT_TYPE_COMMUNITY);
|
||||
|
||||
|
@ -1399,7 +1400,7 @@ class Transmitter
|
|||
$type = self::getTypeOfItem($item);
|
||||
|
||||
if (!$object_mode) {
|
||||
$data = ['@context' => $context ?? ActivityPub::CONTEXT];
|
||||
$data = ['@context' => ActivityPub::CONTEXT];
|
||||
|
||||
if ($item['deleted'] && ($item['gravity'] == Item::GRAVITY_ACTIVITY)) {
|
||||
$type = 'Undo';
|
||||
|
@ -1750,6 +1751,7 @@ class Transmitter
|
|||
|
||||
$title = $item['title'];
|
||||
$summary = $item['content-warning'] ?: BBCode::toPlaintext(BBCode::getAbstract($item['body'], Protocol::ACTIVITYPUB));
|
||||
$type = '';
|
||||
|
||||
if ($item['event-type'] == 'event') {
|
||||
$type = 'Event';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue