Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - app/models/media_attachment.rb Upstream raised max image size from 8MB to 10MB while our limit is configurable. Raised the default to 10MB.
This commit is contained in:
commit
a84aedb7a7
168 changed files with 3456 additions and 997 deletions
|
@ -21,7 +21,7 @@ class InstancePresenter
|
|||
end
|
||||
|
||||
def active_user_count(weeks = 4)
|
||||
Rails.cache.fetch('active_user_count') { Redis.current.pfcount(*(0...weeks).map { |i| "activity:logins:#{i.weeks.ago.utc.to_date.cweek}" }) }
|
||||
Rails.cache.fetch("active_user_count/#{weeks}") { Redis.current.pfcount(*(0...weeks).map { |i| "activity:logins:#{i.weeks.ago.utc.to_date.cweek}" }) }
|
||||
end
|
||||
|
||||
def status_count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue