diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2024-09-21 08:19:16 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2024-09-21 08:19:16 +0000 |
| commit | 9e65b176447f7e125ed4e792110e21eb7c3ef21e (patch) | |
| tree | 92a6439069b62fe27684adaff9908abce7acd4ae /src | |
| parent | f127ae307b3a444f13c6f8b75ba99cf61244677e (diff) | |
| parent | 0878f5bfb43bdc52d72968cbd7bf343e2ec6460d (diff) | |
Merge branch 'non-anonymous-polls' into 'develop'
Inform users that Smithereen public polls are public
See merge request pleroma/pleroma-fe!1932
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/poll/poll.vue | 7 | ||||
| -rw-r--r-- | src/i18n/en.json | 4 |
2 files changed, 10 insertions, 1 deletions
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') }} + ยท + </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 0ed481c0..423ce65e 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", |
