From e18a09f4ac5f27a5fcc4fddf226312d763eb8729 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 3 May 2021 23:18:15 -0400 Subject: [PATCH] Don't show Voted button for polls that you authored --- Tusker/Views/Poll/StatusPollView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tusker/Views/Poll/StatusPollView.swift b/Tusker/Views/Poll/StatusPollView.swift index e70ccecc..d24d216c 100644 --- a/Tusker/Views/Poll/StatusPollView.swift +++ b/Tusker/Views/Poll/StatusPollView.swift @@ -114,7 +114,11 @@ class StatusPollView: UIView { if expired { voteButton.setTitle("Expired", for: .disabled) } else if poll.voted ?? false { - voteButton.setTitle("Voted", for: .disabled) + if status.account.id == mastodonController.account.id { + voteButton.setTitle("", for: .disabled) + } else { + voteButton.setTitle("Voted", for: .disabled) + } } else if poll.multiple { voteButton.setTitle("Select multiple", for: .disabled) } else {