Fixes for issue #10 and issue #14

This commit is contained in:
Poppabear
2017-12-11 20:21:18 -05:00
parent a6f107a925
commit c5f71b9077
11 changed files with 30 additions and 28 deletions
+2 -2
View File
@@ -223,7 +223,7 @@ class ForumController extends Controller
$topicCreator = User::findOrFail($topic->first_post_user_id);
// Post To ShoutBox
Shoutbox::create(['user' => "0", 'mentions' => "0", 'message' => "User [url=https://blutopia.xyz/" .$user->username. "." .$user->id. "]" .$user->username. "[/url] has left a reply on topic [url=https://blutopia.xyz/community/topic/" .$topic->slug. "." .$topic->id. "]" .$topic->name. "[/url]"]);
Shoutbox::create(['user' => "1", 'mentions' => "1", 'message' => "User [url=https://blutopia.xyz/" .$user->username. "." .$user->id. "]" .$user->username. "[/url] has left a reply on topic [url=https://blutopia.xyz/community/topic/" .$topic->slug. "." .$topic->id. "]" .$topic->name. "[/url]"]);
Cache::forget('shoutbox_messages');
// Mail Topic Creator Of New Reply
@@ -314,7 +314,7 @@ class ForumController extends Controller
$forum->save();
// Post To ShoutBox
Shoutbox::create(['user' => "0", 'mentions' => "0", 'message' => "User [url=https://blutopia.xyz/" .$user->username. "." .$user->id. "]" .$user->username. "[/url] has created a new topic [url=https://blutopia.xyz/community/topic/" .$topic->slug. "." .$topic->id. "]" .$topic->name. "[/url]"]);
Shoutbox::create(['user' => "1", 'mentions' => "1", 'message' => "User [url=https://blutopia.xyz/" .$user->username. "." .$user->id. "]" .$user->username. "[/url] has created a new topic [url=https://blutopia.xyz/community/topic/" .$topic->slug. "." .$topic->id. "]" .$topic->name. "[/url]"]);
Cache::forget('shoutbox_messages');
//Achievements