mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:10:11 +00:00
Store "audience" and "attributedTo" data
This commit is contained in:
parent
a36e53af3c
commit
78b969cb19
8 changed files with 90 additions and 57 deletions
|
@ -208,7 +208,7 @@ class ClientToServer
|
|||
|
||||
$targets = [];
|
||||
|
||||
foreach (['as:to', 'as:cc', 'as:bto', 'as:bcc'] as $element) {
|
||||
foreach (['as:to', 'as:cc', 'as:bto', 'as:bcc', 'as:audience'] as $element) {
|
||||
switch ($element) {
|
||||
case 'as:to':
|
||||
$type = Receiver::TARGET_TO;
|
||||
|
@ -222,7 +222,10 @@ class ClientToServer
|
|||
case 'as:bcc':
|
||||
$type = Receiver::TARGET_BCC;
|
||||
break;
|
||||
}
|
||||
case 'as:audience':
|
||||
$type = Receiver::TARGET_AUDIENCE;
|
||||
break;
|
||||
}
|
||||
$receiver_list = JsonLD::fetchElementArray($object, $element, '@id');
|
||||
if (empty($receiver_list)) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue