1
0
Fork 0
forked from gitea/nas

Fix: #421 リスト新着投稿通知処理を、リードレプリカの中から外す (#424)

This commit is contained in:
KMY(雪あすか) 2024-01-05 09:07:56 +09:00 committed by GitHub
parent 2c5c068365
commit a95c167dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,8 @@ class FeedInsertWorker
with_read_replica do with_read_replica do
check_and_insert check_and_insert
end end
perform_notify_for_list if !feed_filtered? && notify_for_list?
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
true true
end end
@ -39,7 +41,6 @@ class FeedInsertWorker
else else
perform_push perform_push
perform_notify if notify? perform_notify if notify?
perform_notify_for_list if notify_for_list?
end end
end end