fixing /screenshot/:name

This commit is contained in:
Christoph Haas 2025-06-23 00:46:23 +02:00
parent 296e2d3f19
commit eb198a491b

View file

@ -292,7 +292,7 @@ class PackagesController < ApplicationController
@image = @package.best_screenshot_for_version(params[:version])
else
# Called as /screenshot/:name
@package.screenshots.accessible_by(current_ability, :view).first
@image = @package.screenshots.accessible_by(current_ability, :view).first
end
# Return a 404 if the package has no screenshots or the image was not found