mirror of
https://github.com/friendica/friendica
synced 2025-04-19 10:30:10 +00:00
Issue 14377: Support for "postingRestrictedToMods" added
This commit is contained in:
parent
355273b13c
commit
d9d9cd45e4
8 changed files with 56 additions and 37 deletions
|
@ -993,6 +993,11 @@ class Processor
|
|||
}
|
||||
}
|
||||
|
||||
$author = Contact::selectFirstAccount(['ap-posting-restricted'], ['id' => $item['author-id']]);
|
||||
if (!empty($author['ap-posting-restricted'])) {
|
||||
$item['restrictions'] = $item['restrictions'] | Item::CANT_REPLY;
|
||||
}
|
||||
|
||||
$item['location'] = $activity['location'];
|
||||
|
||||
if (!empty($activity['latitude']) && !empty($activity['longitude'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue