add category to image logging

This commit is contained in:
Donovan Daniels 2024-05-07 02:54:31 -05:00
parent 0542d71005
commit 0f2acc808c
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -227,6 +227,7 @@ class APIImage < ApplicationRecord
title: "Image Uploaded", title: "Image Uploaded",
description: <<~DESC, description: <<~DESC,
ID: `#{md5}` ID: `#{md5}`
Category: `#{category}`
Artists: `#{artists.join(', ')}` Artists: `#{artists.join(', ')}`
Sources: Sources:
#{sources.map { |s| "* #{s}" }.join("\n")} #{sources.map { |s| "* #{s}" }.join("\n")}
@ -245,6 +246,7 @@ class APIImage < ApplicationRecord
title: "Image Deleted", title: "Image Deleted",
description: <<~DESC, description: <<~DESC,
ID: `#{md5}` ID: `#{md5}`
Category: `#{category}`
Artists: `#{artists.join(', ')}` Artists: `#{artists.join(', ')}`
Sources: Sources:
#{sources.map { |s| "* #{s}" }.join("\n")} #{sources.map { |s| "* #{s}" }.join("\n")}