mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "REFACTOR: remove unnecessary parentheses"
Specs fail
This commit is contained in:
parent
c6ed86220e
commit
e9ba4c74f7
@ -215,7 +215,8 @@ class Post < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def matches_recent_post?
|
def matches_recent_post?
|
||||||
$redis.get(unique_post_key).to_i != id
|
post_id = $redis.get(unique_post_key)
|
||||||
|
post_id != (nil) && post_id.to_i != (id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def raw_hash
|
def raw_hash
|
||||||
|
Loading…
Reference in New Issue
Block a user