mirror of
https://github.com/friendica/friendica
synced 2025-04-22 11:50:11 +00:00
Delete unused media attachments
This commit is contained in:
parent
af28b82858
commit
425f23bbdc
17 changed files with 459 additions and 372 deletions
|
@ -979,9 +979,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;
|
||||
if (!empty($item['author-id'])) {
|
||||
$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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue