From 01855f315c7db813d7bbf2f3683017819d2fb70c Mon Sep 17 00:00:00 2001 From: Wyatt Benno <wyattbenno@gmail.com> Date: Fri, 6 Dec 2019 09:38:55 +0900 Subject: [PATCH] Wording updates --- src/components/timeline/timeline.vue | 2 +- src/i18n/en.json | 3 +-- src/services/timeline_fetcher/timeline_fetcher.service.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 1c45d0f6..e4d453b8 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -84,7 +84,7 @@ v-else-if="error403" href="#" > - <div class="new-status-notification text-center panel-footer">{{ $t('timeline.error_403_message') }}</div> + <div class="new-status-notification text-center panel-footer">{{ error403 }}</div> </a> <div v-else diff --git a/src/i18n/en.json b/src/i18n/en.json index c203e156..1dd99062 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -535,8 +535,7 @@ "collapse": "Collapse", "conversation": "Conversation", "error_fetching": "Error fetching updates", - "error_403": "This timeline is not public.", - "error_403_message": "Please sign in.", + "error_403": "Access denied", "load_older": "Load older statuses", "no_retweet_hint": "Post is marked as followers-only or direct and cannot be repeated", "repeated": "repeated", diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js index 9352d73a..b7952050 100644 --- a/src/services/timeline_fetcher/timeline_fetcher.service.js +++ b/src/services/timeline_fetcher/timeline_fetcher.service.js @@ -48,7 +48,7 @@ const fetchAndUpdate = ({ .then((statuses) => { // Change messaging if not public if (statuses.error) { - store.dispatch('set403Error', { value: true }) + store.dispatch('set403Error', { value: statuses.error }) return } if (!older && statuses.length >= 20 && !timelineData.loading && numStatusesBeforeFetch > 0) {