diff --git a/app/models/short_url.rb b/app/models/short_url.rb index ec89ce4..22305b7 100644 --- a/app/models/short_url.rb +++ b/app/models/short_url.rb @@ -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