Issue 13714: Support for "commentsEnabled" and "capabilities"

This commit is contained in:
Michael 2024-03-17 10:19:22 +00:00
parent 732d738b82
commit 7a0c5d141e
9 changed files with 75 additions and 13 deletions

View file

@ -927,7 +927,16 @@ class Processor
$restrictions = [];
}
// @todo Store restrictions
$item['restrictions'] = null;
foreach ($restrictions as $restriction) {
if ($restriction == Tag::CAN_REPLY) {
$item['restrictions'] = $item['restrictions'] | Item::CANT_REPLY;
} elseif ($restriction == Tag::CAN_LIKE) {
$item['restrictions'] = $item['restrictions'] | Item::CANT_LIKE;
} elseif ($restriction == Tag::CAN_ANNOUNCE) {
$item['restrictions'] = $item['restrictions'] | Item::CANT_ANNOUNCE;
}
}
$item['location'] = $activity['location'];