mirror of
https://github.com/friendica/friendica
synced 2025-04-27 14:30:11 +00:00
Add Install Mode
- merge `friendica/develop` to `nupplaphil/install_mode`
This commit is contained in:
commit
b4f5311e7f
18 changed files with 7851 additions and 7830 deletions
|
@ -513,7 +513,7 @@ function load_view_file($s) {
|
|||
return $content;
|
||||
}
|
||||
|
||||
$theme = current_theme();
|
||||
$theme = $a->getCurrentTheme();
|
||||
|
||||
if (file_exists("$d/theme/$theme/$b")) {
|
||||
$stamp1 = microtime(true);
|
||||
|
@ -1249,7 +1249,7 @@ function prepare_body(array &$item, $attach = false, $is_preview = false)
|
|||
|
||||
// Compile eventual content filter reasons
|
||||
$filter_reasons = [];
|
||||
if (!$is_preview && !($item['self'] && local_user() == $item['uid'])) {
|
||||
if (!$is_preview && public_contact() != $item['author-id']) {
|
||||
if (!empty($item['content-warning']) && (!local_user() || !PConfig::get(local_user(), 'system', 'disable_cw', false))) {
|
||||
$filter_reasons[] = L10n::t('Content warning: %s', $item['content-warning']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue