mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
BUGFIX: seen recently key needs to be public so mock can easily reach in to it
This commit is contained in:
parent
aa3096141a
commit
983c7567aa
1 changed files with 3 additions and 5 deletions
|
@ -64,9 +64,7 @@ class GroupMessage
|
|||
$redis.setex(sent_recently_key, @opts[:limit_once_per].try(:to_i) || 86_400, 1) unless @opts[:limit_once_per] == false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def sent_recently_key
|
||||
"grpmsg:#{@group_name}:#{@message_type}:#{@opts[:user] ? @opts[:user].username : ''}"
|
||||
end
|
||||
def sent_recently_key
|
||||
"grpmsg:#{@group_name}:#{@message_type}:#{@opts[:user] ? @opts[:user].username : ''}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue