From 382daf45c27ec5bebaded5b1ad4a750172a13c97 Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Fri, 24 Nov 2023 00:08:05 +0000 Subject: [PATCH] Format `/delete` actions --- app/Models/Trace/ModeratorAction.php | 4 ++++ resources/views/dashboard/channel.blade.php | 4 ++-- resources/views/layouts/app.blade.php | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/Models/Trace/ModeratorAction.php b/app/Models/Trace/ModeratorAction.php index f39aeac..14cf979 100644 --- a/app/Models/Trace/ModeratorAction.php +++ b/app/Models/Trace/ModeratorAction.php @@ -38,6 +38,10 @@ public function formatted() : string return sprintf('/%s %s', $cmd, $duration); } + if ($cmd === 'delete') { + return sprintf('/%s %s %s %s', $cmd, $this->targetName(), $this->message, $this->message_id); + } + /** * Timeout/untimeout */ diff --git a/resources/views/dashboard/channel.blade.php b/resources/views/dashboard/channel.blade.php index 750f42b..0b21097 100644 --- a/resources/views/dashboard/channel.blade.php +++ b/resources/views/dashboard/channel.blade.php @@ -6,7 +6,7 @@
-
+

@@ -16,7 +16,7 @@ - + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index dcd24b3..ae58856 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -38,6 +38,7 @@
  • Different filtering options: Type of action (timeout, raid etc.), moderator (whodunit), user/viewer (next point).
  • Searching by text.
  • See related moderation actions, for example if a specific viewer has been timed out or banned multiple times.
  • +
  • Linking any affected viewer's to their Twitch viewer card.
  • Pagination, currently you can only see the latest 100 moderator actions.
  • Automatic conversion to local time. Currently it's displayed in UTC.
  • Ability to see a viewer's chat messages at the time of action, alongside messages before/after to see context.
  • WhenTime & date Command Moderator