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}")
|
prev&.update!(code: "#{code}_#{prev.id}")
|
||||||
CurrentUser.as_system do
|
CurrentUser.as_system do
|
||||||
create!(
|
create!(
|
||||||
code: code,
|
code: code,
|
||||||
creator_name: "YiffyAPI",
|
creator_name: "YiffyAPI",
|
||||||
creator_ua: "YiffyAPI",
|
creator_ua: "YiffyAPI",
|
||||||
url: url,
|
url: url,
|
||||||
|
no_webhook_messages: true,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user