Reduced count of latest karma changes.
This commit is contained in:
parent
f807b03e74
commit
0da7a322f9
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue