Преглед на файлове

Merge branch 'non-anonymous-polls' into 'develop'

Inform users that Smithereen public polls are public

See merge request pleroma/pleroma-fe!1932
HJ преди 2 месеца
родител
ревизия
9e65b17644
променени са 3 файла, в които са добавени 11 реда и са изтрити 1 реда
  1. 1 0
      changelog.d/non-anonymous-polls.add
  2. 7 0
      src/components/poll/poll.vue
  3. 3 1
      src/i18n/en.json

+ 1 - 0
changelog.d/non-anonymous-polls.add

@@ -0,0 +1 @@
+Inform users that Smithereen public polls are public

+ 7 - 0
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 }) }}

+ 3 - 1
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",