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
|
@ -470,11 +470,15 @@ These Fields are not added below (yet). They are here to for bug search.
|
|||
* @brief SQL join for contacts that are needed for displaying items
|
||||
*/
|
||||
function item_joins() {
|
||||
return "STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id` AND
|
||||
(NOT `contact`.`blocked` OR `contact`.`pending`)
|
||||
return sprintf("STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
||||
AND NOT `contact`.`blocked`
|
||||
AND ((NOT `contact`.`readonly` AND NOT `contact`.`pending` AND (`contact`.`rel` IN (%s, %s)))
|
||||
OR `contact`.`self` OR (`item`.`id` != `item`.`parent`))
|
||||
LEFT JOIN `contact` AS `author` ON `author`.`id`=`item`.`author-id`
|
||||
LEFT JOIN `contact` AS `owner` ON `owner`.`id`=`item`.`owner-id`
|
||||
LEFT JOIN `event` ON `event-id` = `event`.`id`";
|
||||
LEFT JOIN `event` ON `event-id` = `event`.`id`",
|
||||
CONTACT_IS_SHARING, CONTACT_IS_FRIEND
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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