mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-29 23:09:42 -05:00
refactor: newline after statement
This commit is contained in:
@@ -168,6 +168,7 @@ class TopicController extends Controller
|
||||
return \redirect()->route('forums.index')
|
||||
->withErrors($v->errors());
|
||||
}
|
||||
|
||||
$topic->save();
|
||||
$post = new Post();
|
||||
$post->content = $request->input('content');
|
||||
@@ -182,6 +183,7 @@ class TopicController extends Controller
|
||||
return \redirect()->route('forums.index')
|
||||
->withErrors($v->errors());
|
||||
}
|
||||
|
||||
$post->save();
|
||||
$topic->num_post = 1;
|
||||
$topic->last_reply_at = $post->created_at;
|
||||
@@ -206,6 +208,7 @@ class TopicController extends Controller
|
||||
$this->chatRepository->systemMessage(\sprintf('[url=%s]%s[/url] has created a new topic [url=%s]%s[/url]', $profileUrl, $user->username, $topicUrl, $topic->name));
|
||||
$forum->notifySubscribers($user, $topic);
|
||||
}
|
||||
|
||||
//Achievements
|
||||
$user->unlock(new UserMadeFirstPost(), 1);
|
||||
$user->addProgress(new UserMade25Posts(), 1);
|
||||
|
||||
Reference in New Issue
Block a user