mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-11 07:41:17 +02:00
Add SQLite indexes for contenus page language/tag queries + WIP: Peertube orphans, dialogs, contact decoupling, context note, finality types
This commit is contained in:
@@ -339,8 +339,13 @@ class ThesisCreateController
|
||||
if ($contactVisible === '') {
|
||||
$contactVisible = trim($post['mail'] ?? '');
|
||||
}
|
||||
// showContact: whether to show the contact publicly
|
||||
if (array_key_exists('contact_public', $post)) {
|
||||
// showContact: whether to show the contact publicly on the TFE page.
|
||||
// In admin mode, the checkbox always renders — unchecked = not sent.
|
||||
// In student mode (partage), the checkbox is not shown, so we
|
||||
// default to true when contact_visible is filled.
|
||||
if ($adminMode) {
|
||||
$showContact = !empty($post['contact_public']);
|
||||
} elseif (array_key_exists('contact_public', $post)) {
|
||||
$showContact = !empty($post['contact_public']);
|
||||
} else {
|
||||
$showContact = $contactVisible !== '';
|
||||
|
||||
Reference in New Issue
Block a user