mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Closed #52 - fixes for anonymous accounts
- Anonymous account is no longer created when commenting/uploading - Anonymous users can now switch safety, if it's available - Anonymous users can delete their own posts - Refurbished session and logging in/out mechanism - Possible fixes for registration/activation/account deletion issues
This commit is contained in:
@ -72,7 +72,8 @@ class CommentController
|
||||
$text = Model_Comment::validateText($text);
|
||||
$comment = R::dispense('comment');
|
||||
$comment->post = $post;
|
||||
$comment->commenter = $this->context->user;
|
||||
if ($this->context->loggedIn)
|
||||
$comment->commenter = $this->context->user;
|
||||
$comment->comment_date = time();
|
||||
$comment->text = $text;
|
||||
if (InputHelper::get('sender') != 'preview')
|
||||
|
Reference in New Issue
Block a user