mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
There is now a "content-warning" field
This commit is contained in:
parent
6352aa112b
commit
5bd519efff
6 changed files with 28 additions and 27 deletions
|
@ -1182,6 +1182,11 @@ function put_item_in_cache(&$item, $update = false)
|
|||
// I'm not sure if we should store it permanently, so we save the old value.
|
||||
$body = $item["body"];
|
||||
|
||||
// Add the content warning
|
||||
if (!empty($item['content-warning'])) {
|
||||
$item["body"] = $item['content-warning'] . '[spoiler]' . $item["body"] . '[/spoiler]';
|
||||
}
|
||||
|
||||
$a = get_app();
|
||||
redir_private_images($a, $item);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue