Skip to content

Commit

Permalink
Merge pull request #126 from Hyleus/forum-post-ids
Browse files Browse the repository at this point in the history
 Add the page number and post ID to system messages
  • Loading branch information
HDVinnie authored Jan 19, 2018
2 parents e51caec + 312e668 commit 828d98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ForumController.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function reply($slug, $id)

// Post To ShoutBox
$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]"]);
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 . "?page={$post->getPageNumber()}#post-{$post->id}" . "]" . $topic->name . "[/url]"]);
Cache::forget('shoutbox_messages');

// Mail Topic Creator Of New Reply
Expand Down

0 comments on commit 828d98e

Please sign in to comment.