diff --git a/app/Filament/Resources/GameResource/Pages/Hashes.php b/app/Filament/Resources/GameResource/Pages/Hashes.php index 0e16dc3494..acf5d96f3e 100644 --- a/app/Filament/Resources/GameResource/Pages/Hashes.php +++ b/app/Filament/Resources/GameResource/Pages/Hashes.php @@ -124,12 +124,6 @@ public function table(Table $table): Table $changedAttributes[$key] = $value; } } - - $this->logGameHashUpdate( - $record, - $changedAttributes, - Auth::user() - ); }), ]), @@ -194,34 +188,4 @@ public function table(Table $table): Table ]) ->paginated(false); } - - /** - * @deprecated migrate everything to the activitylog - */ - private function logGameHashUpdate(GameHash $gameHash, array $changedAttributes, User $user): void - { - $commentParts = ["{$gameHash->md5} updated by {$user->User}."]; - - foreach ($changedAttributes as $attribute => $newValue) { - $newValueDisplay = $newValue ?? 'None'; - - switch ($attribute) { - case 'Name': - $commentParts[] = "File Name: \"{$newValueDisplay}\"."; - break; - case 'Labels': - $commentParts[] = "Label: \"{$newValueDisplay}\"."; - break; - case 'patch_url': - $commentParts[] = $newValue ? "RAPatches URL updated to: {$newValue}." : "RAPatches URL removed."; - break; - case 'source': - $commentParts[] = $newValue ? "Resource Page URL updated to: {$newValue}." : "Resource Page URL removed."; - break; - } - } - - $comment = implode(' ', $commentParts); - addArticleComment("Server", ArticleType::GameHash, $gameHash->game_id, $comment); - } }