DEV: Remove code that is no longer valid. (#14657)
The vote post action type was removed in96aca6d7e6
Follow-up to96aca6d7e6
.
This commit is contained in:
parent
f60711488f
commit
a9d6b23802
|
@ -284,7 +284,6 @@ class PostSerializer < BasicPostSerializer
|
|||
|
||||
count = object.public_send(count_col) if object.respond_to?(count_col)
|
||||
summary = { id: id, count: count }
|
||||
summary[:hidden] = true if sym == :vote
|
||||
|
||||
if scope.post_can_act?(object, sym, opts: { taken_actions: actions }, can_see_post: can_see_post)
|
||||
summary[:can_act] = true
|
||||
|
|
Loading…
Reference in New Issue