Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2023-04-14 20:56:43 +02:00 committed by GitHub
parent 78b969cb19
commit c81a9d1ddd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -242,7 +242,7 @@ class PermissionTooltip extends \Friendica\BaseModule
case Tag::ATTRIBUTED:
$output .= DI::l10n()->t('<b>Attributed To:</b> %s<br>', implode(', ', $receiver));
break;
}
}
}
return $output;

View file

@ -225,7 +225,7 @@ class ClientToServer
case 'as:audience':
$type = Receiver::TARGET_AUDIENCE;
break;
}
}
$receiver_list = JsonLD::fetchElementArray($object, $element, '@id');
if (empty($receiver_list)) {
continue;

View file

@ -1169,7 +1169,7 @@ class Receiver
case 'as:audience':
$type = self::TARGET_AUDIENCE;
break;
}
}
$receivers[$contact['uid']] = ['uid' => $contact['uid'], 'type' => $type];
}