5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 16:16:22 +00:00

Merge branch 'blazer' into panel.sutty.nl

This commit is contained in:
f 2022-07-01 14:45:27 -03:00
commit 83b48db154

View file

@ -133,7 +133,8 @@ class StatsController < ApplicationController
def normalized_urls
@normalized_urls ||=
begin
urls = params.permit(:urls).try(:[], :urls)&.split("\n")&.map(&:strip)&.select(&:present?)&.select do |uri|
urls = params[:urls].is_a?(Array) ? params[:urls] : params[:urls]&.split("\n")
urls = urls&.map(&:strip)&.select(&:present?)&.select do |uri|
uri.start_with? 'https://'
end