diff --git a/www/application/classes/Controller/Pages.php b/www/application/classes/Controller/Pages.php index fb97c0bd..a9bfa2a1 100644 --- a/www/application/classes/Controller/Pages.php +++ b/www/application/classes/Controller/Pages.php @@ -120,20 +120,12 @@ public function action_process_join_form() $this->view['success'] = $this->methods->saveJoinRequest($fields); if ($this->view['success']) { - /** - * If user is registered then show link to the profile - * otherwise show email and mailto link - */ - if ($this->user->id) { - $name = $this->user->name; - $id = $this->user->id; - $host = Arr::get($_SERVER, 'HTTP_HOST'); - - $link = "{$host}/user/{$id}"; - $footer = "👤 [$link]($link)"; - } else { - $footer = "✉️ {$email}"; - } + $name = $this->user->name; + $id = $this->user->id; + $host = Arr::get($_SERVER, 'HTTP_HOST'); + + $link = "{$host}/user/{$id}"; + $footer = "✉️ {$email}"; $text = "🦄 {$name} wants to join the team\n" . "\n" . diff --git a/www/application/views/templates/blocks/form-join.php b/www/application/views/templates/blocks/form-join.php index 0a59a780..16069791 100644 --- a/www/application/views/templates/blocks/form-join.php +++ b/www/application/views/templates/blocks/form-join.php @@ -5,7 +5,7 @@ if (!empty($error)): ?>
- To apply, enter email, so we can contact you, and fill a little form. Also, please write where are you from. + To apply, enter email or telegram, so we can contact you, and fill a little form. Also, please write where are you from.