don't log shorturls created by the system

This commit is contained in:
Donovan Daniels 2024-05-08 21:29:00 -05:00
parent 35d4870734
commit 566e334ddd
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -26,10 +26,11 @@ class ShortUrl < ApplicationRecord
prev&.update!(code: "#{code}_#{prev.id}")
CurrentUser.as_system do
create!(
code: code,
creator_name: "YiffyAPI",
creator_ua: "YiffyAPI",
url: url,
code: code,
creator_name: "YiffyAPI",
creator_ua: "YiffyAPI",
url: url,
no_webhook_messages: true,
)
end
end