mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 18:16:07 +02:00
add htm to uri, use site.uri for screenshot
This commit is contained in:
parent
0e827319cd
commit
3a41029313
3 changed files with 4 additions and 4 deletions
|
@ -37,11 +37,11 @@ class ScreenshotWorker
|
|||
|
||||
uri = Addressable::URI.parse $config['screenshot_urls'].sample
|
||||
api_user, api_password = uri.user, uri.password
|
||||
|
||||
uri = "#{uri.scheme}://#{uri.host}:#{uri.port}" + '?' + Rack::Utils.build_query(
|
||||
url: Site.select(:username,:domain).where(username: username).first.uri + path,
|
||||
url: site.uri(path),
|
||||
wait_time: PAGE_WAIT_TIME
|
||||
)
|
||||
|
||||
begin
|
||||
base_image_tmpfile_path = "/tmp/#{SecureRandom.uuid}.png"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue