rename guest user to anon

This commit is contained in:
ghost 2023-12-06 04:21:27 +02:00
parent 10dae97b78
commit 0aecdd302d
3 changed files with 8 additions and 8 deletions

View File

@ -346,7 +346,7 @@ class RoomController extends AbstractController
sprintf(
'%s@%s',
time(), // @TODO save timestamp as part of key to keep timing actual for the chat feature
$request->get('user') === 'ip' ? $request->getClientIp() : 'guest'
$request->get('user') === 'ip' ? $request->getClientIp() : 'anon'
),
$request->get('message')
)
@ -410,7 +410,7 @@ class RoomController extends AbstractController
private function _identicon(mixed $value): ?string
{
if ($value === 'guest')
if ($value === 'anon')
{
return null;
}

View File

@ -4,13 +4,13 @@
<output name="error" for="form-post-message">{{ error }}</output>
{% endif %}
<textarea name="message" id="form-post-message" placeholder="{{ 'enter your message...' | trans }}">{{ message }}</textarea>
{% if user == 'guest' or user != 'ip' %}
<input type="radio" name="user" value="guest" id="form-post-user-guest" checked="checked" />
{% if user == 'anon' or user != 'ip' %}
<input type="radio" name="user" value="anon" id="form-post-user-anon" checked="checked" />
{% else %}
<input type="radio" name="user" value="guest" id="form-post-user-guest" />
<input type="radio" name="user" value="anon" id="form-post-user-anon" />
{% endif %}
<label for="form-post-user-guest">
{{ 'guest' | trans }}
<label for="form-post-user-anon">
{{ 'anon' | trans }}
</label>
{% if user == 'ip' %}
<input type="radio" name="user" value="ip" id="form-post-user-ip" checked="checked" />

View File

@ -20,7 +20,7 @@
<img src="{{ post.icon }}" alt="icon" />
{% else %}
<strong>
@{{ 'guest' | trans }}
@{{ 'anon' | trans }}
</strong>
{% endif %}
&bull;