mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 03:34:22 -05:00
@@ -223,7 +223,7 @@ class ForumController extends Controller
|
||||
$topicCreator = User::findOrFail($topic->first_post_user_id);
|
||||
|
||||
// Post To ShoutBox
|
||||
$appurl = env('APP_URL', 'http://unit3d.site');
|
||||
$appurl = config('app.url');
|
||||
Shoutbox::create(['user' => "1", 'mentions' => "1", 'message' => "User [url={$appurl}/" . $user->username . "." . $user->id . "]" . $user->username . "[/url] has left a reply on topic [url={$appurl}/community/topic/" . $topic->slug . "." . $topic->id . "]" . $topic->name . "[/url]"]);
|
||||
Cache::forget('shoutbox_messages');
|
||||
|
||||
@@ -314,7 +314,7 @@ class ForumController extends Controller
|
||||
$forum->save();
|
||||
|
||||
// Post To ShoutBox
|
||||
$appurl = env('APP_URL', 'http://unit3d.site');
|
||||
$appurl = config('app.url');
|
||||
Shoutbox::create(['user' => "1", 'mentions' => "1", 'message' => "User [url={$appurl}/" . $user->username . "." . $user->id . "]" . $user->username . "[/url] has created a new topic [url={$appurl}/community/topic/" . $topic->slug . "." . $topic->id . "]" . $topic->name . "[/url]"]);
|
||||
Cache::forget('shoutbox_messages');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user