mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 02:53:39 +08:00
FIX: ensures file extension doesnt have a leading point (#7449)
This commit is contained in:
parent
6952510fc4
commit
de79313f62
|
@ -64,7 +64,7 @@ Report.add_report('top_uploads') do |report|
|
|||
builder.where("up.created_at < :end_date", end_date: report.end_date)
|
||||
|
||||
if extension_filter
|
||||
builder.where("up.extension = :extension", extension: extension_filter)
|
||||
builder.where("up.extension = :extension", extension: extension_filter.sub(/^\./, ''))
|
||||
end
|
||||
|
||||
builder.query.each do |row|
|
||||
|
|
Loading…
Reference in New Issue
Block a user