mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
dont take screenshots for deleted sites
This commit is contained in:
parent
234df04300
commit
1260a856d5
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ class ScreenshotWorker
|
|||
scheduled_job.delete
|
||||
end
|
||||
|
||||
site = Site[username: username]
|
||||
return if site.is_deleted
|
||||
|
||||
path = "/#{path}" unless path[0] == '/'
|
||||
|
||||
uri = Addressable::URI.parse $config['screenshot_urls'].sample
|
||||
|
|
Loading…
Add table
Reference in a new issue