mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 08:19:33 -05:00
(Fix) Chat Announces 🐛
This commit is contained in:
@@ -157,7 +157,7 @@ class PostController extends Controller
|
||||
$appurl = config('app.url');
|
||||
$postUrl = "{$appurl}/forums/topics/{$topic->id}?page={$post->getPageNumber()}#post-{$post->id}";
|
||||
$realUrl = "/forums/topics/{$topic->id}?page={$post->getPageNumber()}#post-{$post->id}";
|
||||
$profileUrl = "{$appurl}/{$user->username}.{$user->id}";
|
||||
$profileUrl = "{$appurl}/users/{$user->username}";
|
||||
$this->chat->systemMessage("[url=$profileUrl]{$user->username}[/url] has left a reply on topic [url={$postUrl}]{$topic->name}[/url]");
|
||||
|
||||
// Notify All Subscribers Of New Reply
|
||||
|
||||
@@ -79,7 +79,7 @@ class ModerationController extends Controller
|
||||
// Announce To Shoutbox
|
||||
if ($anon == 0) {
|
||||
$this->chat->systemMessage(
|
||||
"User [url={$appurl}/".$username.'.'.$user_id.']'.$username."[/url] has uploaded [url={$appurl}/torrents/".$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
|
||||
"User [url={$appurl}/users/".$username.']'.$username."[/url] has uploaded [url={$appurl}/torrents/".$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
|
||||
);
|
||||
} else {
|
||||
$this->chat->systemMessage(
|
||||
|
||||
@@ -211,7 +211,7 @@ class TopicController extends Controller
|
||||
// Post To ShoutBox
|
||||
$appurl = config('app.url');
|
||||
$topicUrl = "{$appurl}/forums/topics/{$topic->id}";
|
||||
$profileUrl = "{$appurl}/{$user->username}.{$user->id}";
|
||||
$profileUrl = "{$appurl}/users/{$user->username}";
|
||||
|
||||
$this->chat->systemMessage("[url={$profileUrl}]{$user->username}[/url] has created a new topic [url={$topicUrl}]{$topic->name}[/url]");
|
||||
|
||||
|
||||
@@ -1403,7 +1403,7 @@ class TorrentController extends Controller
|
||||
// Announce To Shoutbox
|
||||
if ($anon == 0) {
|
||||
$this->chat->systemMessage(
|
||||
"User [url={$appurl}/".$username.'.'.$user_id.']'.$username."[/url] has uploaded [url={$appurl}/torrents/".$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
|
||||
"User [url={$appurl}/users/".$username.']'.$username."[/url] has uploaded [url={$appurl}/torrents/".$torrent->id.']'.$torrent->name.'[/url] grab it now! :slight_smile:'
|
||||
);
|
||||
} else {
|
||||
$this->chat->systemMessage(
|
||||
|
||||
Reference in New Issue
Block a user