Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
78b969cb19
commit
c81a9d1ddd
3 changed files with 3 additions and 3 deletions
|
@ -242,7 +242,7 @@ class PermissionTooltip extends \Friendica\BaseModule
|
||||||
case Tag::ATTRIBUTED:
|
case Tag::ATTRIBUTED:
|
||||||
$output .= DI::l10n()->t('<b>Attributed To:</b> %s<br>', implode(', ', $receiver));
|
$output .= DI::l10n()->t('<b>Attributed To:</b> %s<br>', implode(', ', $receiver));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
|
@ -225,7 +225,7 @@ class ClientToServer
|
||||||
case 'as:audience':
|
case 'as:audience':
|
||||||
$type = Receiver::TARGET_AUDIENCE;
|
$type = Receiver::TARGET_AUDIENCE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$receiver_list = JsonLD::fetchElementArray($object, $element, '@id');
|
$receiver_list = JsonLD::fetchElementArray($object, $element, '@id');
|
||||||
if (empty($receiver_list)) {
|
if (empty($receiver_list)) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -1169,7 +1169,7 @@ class Receiver
|
||||||
case 'as:audience':
|
case 'as:audience':
|
||||||
$type = self::TARGET_AUDIENCE;
|
$type = self::TARGET_AUDIENCE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$receivers[$contact['uid']] = ['uid' => $contact['uid'], 'type' => $type];
|
$receivers[$contact['uid']] = ['uid' => $contact['uid'], 'type' => $type];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue