Reduced count of latest karma changes.

This commit is contained in:
Martin Edenhofer 2016-07-14 19:24:56 +02:00
parent f807b03e74
commit 0da7a322f9

View file

@ -47,7 +47,7 @@ class Karma::ActivityLog < ApplicationModel
true
end
def self.latest(user, limit = 20)
def self.latest(user, limit = 12)
result = []
logs = Karma::ActivityLog.where(user_id: user.id).order(id: :desc).limit(limit)
logs.each { |log|