Make the view count cookie names shorter
This commit is contained in:
parent
97aa36e853
commit
9589df952f
@ -1,7 +1,7 @@
|
||||
class ViewCounter
|
||||
|
||||
def increment(asciicast, storage)
|
||||
key = :"asciicast_#{asciicast.id}_viewed"
|
||||
key = "a#{asciicast.id}"
|
||||
return if storage[key]
|
||||
|
||||
Asciicast.increment_counter(:views_count, asciicast.id)
|
||||
|
Loading…
Reference in New Issue
Block a user