From 566e334ddd311033427d7b06720f769c65810c73 Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Wed, 8 May 2024 21:29:00 -0500 Subject: [PATCH] don't log shorturls created by the system --- app/models/short_url.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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