aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2024-08-13 19:39:26 +0200
committermarcin mikołajczak <git@mkljczk.pl>2024-08-13 19:41:06 +0200
commit0878f5bfb43bdc52d72968cbd7bf343e2ec6460d (patch)
tree4b6450f756211b8fb9ede7754bc7a03c4fedb778
parent83189d9d41042177b32f97341ee3484ae4ec0152 (diff)
Inform users that Smithereen public polls are public
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
-rw-r--r--changelog.d/non-anonymous-polls.add1
-rw-r--r--src/components/poll/poll.vue7
-rw-r--r--src/i18n/en.json4
3 files changed, 11 insertions, 1 deletions
diff --git a/changelog.d/non-anonymous-polls.add b/changelog.d/non-anonymous-polls.add
new file mode 100644
index 00000000..9ff7f3ad
--- /dev/null
+++ b/changelog.d/non-anonymous-polls.add
@@ -0,0 +1 @@
+Inform users that Smithereen public polls are public \ No newline at end of file
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue
index 580e5377..e12f3e61 100644
--- a/src/components/poll/poll.vue
+++ b/src/components/poll/poll.vue
@@ -76,6 +76,13 @@
>
{{ $t('polls.vote') }}
</button>
+ <span
+ v-if="poll.pleroma?.non_anonymous"
+ :title="$t('polls.non_anonymous_title')"
+ >
+ {{ $t('polls.non_anonymous') }}
+ &nbsp;·&nbsp;
+ </span>
<div class="total">
<template v-if="typeof poll.voters_count === 'number'">
{{ $tc("polls.people_voted_count", poll.voters_count, { count: poll.voters_count }) }}
diff --git a/src/i18n/en.json b/src/i18n/en.json
index 3f7ea282..875d756d 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -229,7 +229,9 @@
"expiry": "Poll age",
"expires_in": "Poll ends in {0}",
"expired": "Poll ended {0} ago",
- "not_enough_options": "Too few unique options in poll"
+ "not_enough_options": "Too few unique options in poll",
+ "non_anonymous": "Public poll",
+ "non_anonymous_title": "Other instances may display the options you voted for"
},
"emoji": {
"stickers": "Stickers",