mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed history for posts uploaded anonymously
Until now posts uploaded anonymously were not so anonymous - the author was clearly visible in post history (and tag history if the upload has led to creation of any new tags). Both of these are fixed now.
This commit is contained in:
@ -109,10 +109,13 @@ class PostService
|
||||
{
|
||||
$formData->validate($this->validator);
|
||||
|
||||
if ($formData->anonymous)
|
||||
$this->authService->loginAnonymous();
|
||||
|
||||
$post = new Post();
|
||||
$post->setUploadTime($this->timeService->getCurrentTime());
|
||||
$post->setLastEditTime($this->timeService->getCurrentTime());
|
||||
$post->setUser($formData->anonymous ? null : $this->authService->getLoggedInUser());
|
||||
$post->setUser($this->authService->getLoggedInUser());
|
||||
$post->setOriginalFileName($formData->contentFileName);
|
||||
$post->setName($this->getUniqueRandomPostName());
|
||||
|
||||
|
Reference in New Issue
Block a user