blob: 7b434054c7529be9f7a15de3da099f853551d3ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
require 'booru/config'
class StatsController < ApplicationController
skip_authorization_check
content_security_policy do |policy|
policy.frame_src :self
end
def show
@title = 'Site Statistics'
@images_aggregation = Post.search(Booru::CONFIG.aggregation[:images])
if show_comments?
@comments_aggregation = Comment.search(Booru::CONFIG.aggregation[:comments])
end
end
end
|