mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 19:38:25 +02:00
fixes for screenshot worker
This commit is contained in:
parent
0aca6b3328
commit
fbf78f04d6
8 changed files with 69 additions and 2 deletions
|
@ -366,7 +366,7 @@ class Site < Sequel::Model
|
|||
ext = File.extname(path).gsub(/^./, '')
|
||||
|
||||
if ext.match HTML_REGEX
|
||||
ScreenshotWorker.perform_async values[:username], path
|
||||
ScreenshotWorker.perform_async values[:username], relative_path
|
||||
elsif ext.match IMAGE_REGEX
|
||||
ThumbnailWorker.perform_async values[:username], relative_path
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue