mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 20:51:12 +08:00
DEV: Remove code that is no longer valid. (#14657)
The vote post action type was removed in 96aca6d7e6dc3c05d761098a19f96b82d2783b1c Follow-up to 96aca6d7e6dc3c05d761098a19f96b82d2783b1c.
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…
x
Reference in New Issue
Block a user