mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
catch error if follow is missing
This commit is contained in:
parent
04bcd555c3
commit
b89ffc2bad
1 changed files with 1 additions and 0 deletions
|
@ -393,6 +393,7 @@ class Site < Sequel::Model
|
|||
if is_following? site
|
||||
DB.transaction do
|
||||
follow = followings_dataset.filter(site_id: site.id).first
|
||||
return false if follow.nil?
|
||||
site.events_dataset.filter(follow_id: follow.id).delete
|
||||
follow.delete
|
||||
# FIXME This is a being abused somehow. A weekly script now computes this.
|
||||
|
|
Loading…
Add table
Reference in a new issue