don't log shorturls created by the system
This commit is contained in:
parent
35d4870734
commit
566e334ddd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user