DEV: Remove code that is no longer valid. (#14657)

The vote post action type was removed in 96aca6d7e6

Follow-up to 96aca6d7e6.
This commit is contained in:
Alan Guo Xiang Tan 2021-10-21 10:47:22 +08:00 committed by GitHub
parent f60711488f
commit a9d6b23802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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