mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:50:12 +00:00
Issue 13714: Support for "commentsEnabled" and "capabilities"
This commit is contained in:
parent
732d738b82
commit
7a0c5d141e
9 changed files with 75 additions and 13 deletions
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue