diff --git a/changelog.d/quotes-count.add b/changelog.d/quotes-count.add deleted file mode 100644 index 86779b96b..000000000 --- a/changelog.d/quotes-count.add +++ /dev/null @@ -1 +0,0 @@ -Display quotes count on posts and add quotes list page \ No newline at end of file diff --git a/changelog.d/scrobbles-age-filter.add b/changelog.d/scrobbles-age-filter.add deleted file mode 100644 index ecd3c7d82..000000000 --- a/changelog.d/scrobbles-age-filter.add +++ /dev/null @@ -1 +0,0 @@ -Option to only show scrobbles that are recent enough diff --git a/src/App.scss b/src/App.scss index 32ca91896..6e0aabcaa 100644 --- a/src/App.scss +++ b/src/App.scss @@ -3,7 +3,7 @@ @import "./panel"; :root { - --fontSize: 14px; + --font-size: 14px; --status-margin: 0.75em; --navbar-height: 3.5rem; --post-line-height: 1.4; @@ -20,7 +20,7 @@ } html { - font-size: var(--textSize); + font-size: var(--font-size); // overflow-x: clip causes my browser's tab to crash with SIGILL lul } diff --git a/src/boot/routes.js b/src/boot/routes.js index 31e3dbb07..2dc900e7e 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -25,7 +25,6 @@ import ListsTimeline from 'components/lists_timeline/lists_timeline.vue' import ListsEdit from 'components/lists_edit/lists_edit.vue' import NavPanel from 'src/components/nav_panel/nav_panel.vue' import AnnouncementsPage from 'components/announcements_page/announcements_page.vue' -import QuotesTimeline from '../components/quotes_timeline/quotes_timeline.vue' export default (store) => { const validateAuthenticatedRoute = (to, from, next) => { @@ -52,7 +51,6 @@ export default (store) => { { name: 'tag-timeline', path: '/tag/:tag', component: TagTimeline }, { name: 'bookmarks', path: '/bookmarks', component: BookmarkTimeline }, { name: 'conversation', path: '/notice/:id', component: ConversationPage, meta: { dontScroll: true } }, - { name: 'quotes', path: '/notice/:id/quotes', component: QuotesTimeline }, { name: 'remote-user-profile-acct', path: '/remote-users/:_(@)?:username([^/@]+)@:hostname([^/@]+)', diff --git a/src/components/quotes_timeline/quotes_timeline.js b/src/components/quotes_timeline/quotes_timeline.js deleted file mode 100644 index a5f42da56..000000000 --- a/src/components/quotes_timeline/quotes_timeline.js +++ /dev/null @@ -1,26 +0,0 @@ -import Timeline from '../timeline/timeline.vue' - -const QuotesTimeline = { - created () { - this.$store.commit('clearTimeline', { timeline: 'quotes' }) - this.$store.dispatch('startFetchingTimeline', { timeline: 'quotes', statusId: this.statusId }) - }, - components: { - Timeline - }, - computed: { - statusId () { return this.$route.params.id }, - timeline () { return this.$store.state.statuses.timelines.quotes } - }, - watch: { - statusId () { - this.$store.commit('clearTimeline', { timeline: 'quotes' }) - this.$store.dispatch('startFetchingTimeline', { timeline: 'quotes', statusId: this.statusId }) - } - }, - unmounted () { - this.$store.dispatch('stopFetchingTimeline', 'quotes') - } -} - -export default QuotesTimeline diff --git a/src/components/quotes_timeline/quotes_timeline.vue b/src/components/quotes_timeline/quotes_timeline.vue deleted file mode 100644 index 835abd12e..000000000 --- a/src/components/quotes_timeline/quotes_timeline.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/src/components/settings_modal/helpers/setting.js b/src/components/settings_modal/helpers/setting.js index 3b3e6268d..abf9cfdf4 100644 --- a/src/components/settings_modal/helpers/setting.js +++ b/src/components/settings_modal/helpers/setting.js @@ -48,10 +48,6 @@ export default { draftMode: { type: Boolean, default: undefined - }, - timedApplyMode: { - type: Boolean, - default: false } }, inject: { @@ -165,11 +161,7 @@ export default { case 'admin': return (k, v) => this.$store.dispatch('pushAdminSetting', { path: k, value: v }) default: - if (this.timedApplyMode) { - return (k, v) => this.$store.dispatch('setOptionTemporarily', { name: k, value: v }) - } else { - return (k, v) => this.$store.dispatch('setOption', { name: k, value: v }) - } + return (k, v) => this.$store.dispatch('setOption', { name: k, value: v }) } }, defaultState () { diff --git a/src/components/settings_modal/helpers/unit_setting.js b/src/components/settings_modal/helpers/unit_setting.js index daeddd813..c9c23cb0b 100644 --- a/src/components/settings_modal/helpers/unit_setting.js +++ b/src/components/settings_modal/helpers/unit_setting.js @@ -21,23 +21,15 @@ export default { unitSet: { type: String, default: 'none' - }, - step: { - type: Number, - default: 1 - }, - resetDefault: { - type: Object, - default: null } }, computed: { ...Setting.computed, stateUnit () { - return typeof this.state === 'string' ? this.state.replace(/[0-9,.]+/, '') : '' + return this.state.replace(/\d+/, '') }, stateValue () { - return typeof this.state === 'string' ? this.state.replace(/[^0-9,.]+/, '') : '' + return this.state.replace(/\D+/, '') } }, methods: { @@ -47,18 +39,10 @@ export default { return this.$t(['settings', 'units', this.unitSet, value].join('.')) }, updateValue (e) { - this.configSink(this.path, parseFloat(e.target.value) + this.stateUnit) + this.configSink(this.path, parseInt(e.target.value) + this.stateUnit) }, updateUnit (e) { - let value = this.stateValue - const newUnit = e.target.value - if (this.resetDefault) { - const replaceValue = this.resetDefault[newUnit] - if (replaceValue != null) { - value = replaceValue - } - } - this.configSink(this.path, value + newUnit) + this.configSink(this.path, this.stateValue + e.target.value) } } } diff --git a/src/components/settings_modal/helpers/unit_setting.vue b/src/components/settings_modal/helpers/unit_setting.vue index 86798e04e..68f52b1cd 100644 --- a/src/components/settings_modal/helpers/unit_setting.vue +++ b/src/components/settings_modal/helpers/unit_setting.vue @@ -13,7 +13,7 @@ :id="path" class="input number-input" type="number" - step="step" + step="1" :disabled="disabled" :min="min || 0" :value="stateValue" diff --git a/src/components/settings_modal/settings_modal.js b/src/components/settings_modal/settings_modal.js index 63c9b24a3..ff58f2c38 100644 --- a/src/components/settings_modal/settings_modal.js +++ b/src/components/settings_modal/settings_modal.js @@ -4,7 +4,6 @@ import AsyncComponentError from 'src/components/async_component_error/async_comp import getResettableAsyncComponent from 'src/services/resettable_async_component.js' import Popover from '../popover/popover.vue' import Checkbox from 'src/components/checkbox/checkbox.vue' -import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue' import { library } from '@fortawesome/fontawesome-svg-core' import { cloneDeep, isEqual } from 'lodash' import { @@ -54,7 +53,6 @@ const SettingsModal = { Modal, Popover, Checkbox, - ConfirmModal, SettingsModalUserContent: getResettableAsyncComponent( () => import('./settings_modal_user_content.vue'), { @@ -167,7 +165,6 @@ const SettingsModal = { }, computed: { currentSaveStateNotice () { - console.log(this.$store.state.interface.settings.currentSaveStateNotice) return this.$store.state.interface.settings.currentSaveStateNotice }, modalActivated () { diff --git a/src/components/settings_modal/settings_modal.vue b/src/components/settings_modal/settings_modal.vue index 90dbbde0a..50859c94c 100644 --- a/src/components/settings_modal/settings_modal.vue +++ b/src/components/settings_modal/settings_modal.vue @@ -147,18 +147,6 @@ - - - {{ $t('settings.confirm_new_question') }} - - diff --git a/src/components/settings_modal/settings_modal_user_content.js b/src/components/settings_modal/settings_modal_user_content.js index ac1190068..9ac0301f6 100644 --- a/src/components/settings_modal/settings_modal_user_content.js +++ b/src/components/settings_modal/settings_modal_user_content.js @@ -7,7 +7,6 @@ import FilteringTab from './tabs/filtering_tab.vue' import SecurityTab from './tabs/security_tab/security_tab.vue' import ProfileTab from './tabs/profile_tab.vue' import GeneralTab from './tabs/general_tab.vue' -import AppearanceTab from './tabs/appearance_tab.vue' import VersionTab from './tabs/version_tab.vue' import ThemeTab from './tabs/theme_tab/theme_tab.vue' @@ -45,7 +44,6 @@ const SettingsModalContent = { SecurityTab, ProfileTab, GeneralTab, - AppearanceTab, VersionTab, ThemeTab }, diff --git a/src/components/settings_modal/settings_modal_user_content.vue b/src/components/settings_modal/settings_modal_user_content.vue index da99f340b..0221cccb6 100644 --- a/src/components/settings_modal/settings_modal_user_content.vue +++ b/src/components/settings_modal/settings_modal_user_content.vue @@ -21,13 +21,6 @@ > -
- -
-
-
-

{{ $t('settings.interface') }}

-
    -
  • - - {{ $t('settings.hide_wallpaper') }} - -
  • -
  • - - {{ $t('settings.disable_sticky_headers') }} - -
  • -
  • - - {{ $t('settings.show_scrollbars') }} - -
  • -
  • - - {{ $t('settings.text_size') }} - -
    - - - px - rem - -
    - - 14px - -
    -
    -
  • -
-
-
- - - - - diff --git a/src/components/settings_modal/tabs/general_tab.vue b/src/components/settings_modal/tabs/general_tab.vue index 240c07626..208c49ee3 100644 --- a/src/components/settings_modal/tabs/general_tab.vue +++ b/src/components/settings_modal/tabs/general_tab.vue @@ -15,6 +15,11 @@ {{ $t('settings.hide_isp') }} +
  • + + {{ $t('settings.hide_wallpaper') }} + +
  • {{ $t('settings.stop_gifs') }} @@ -96,6 +101,16 @@
  • {{ $t('settings.columns') }}

  • +
  • + + {{ $t('settings.disable_sticky_headers') }} + +
  • +
  • + + {{ $t('settings.show_scrollbars') }} + +
  • {{ $t('settings.right_sidebar') }} diff --git a/src/components/status/status.js b/src/components/status/status.js index bf4e42757..190f89164 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -373,9 +373,6 @@ const Status = { hidePostStats () { return this.mergedConfig.hidePostStats }, - shouldDisplayFavsAndRepeats () { - return !this.hidePostStats && this.isFocused && (this.combinedFavsAndRepeatsUsers.length > 0 || this.statusFromGlobalRepository.quotes_count) - }, muteBotStatuses () { return this.mergedConfig.muteBotStatuses }, @@ -432,8 +429,6 @@ const Status = { let multiplier = 60 * 1000 // minutes is smallest unit switch (unit) { case 'm': - break - case 'h': multiplier *= 60 // hour break case 'd': diff --git a/src/components/status/status.scss b/src/components/status/status.scss index 63809ff26..dfdc1189e 100644 --- a/src/components/status/status.scss +++ b/src/components/status/status.scss @@ -374,7 +374,6 @@ font-weight: bolder; font-size: 1.1em; line-height: 1em; - color: var(--text); } &:hover .stat-title { diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 61a58cda0..2a17bb139 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -484,7 +484,7 @@
    @@ -512,19 +512,6 @@
    - -
    - {{ $t('status.quotes') }} -
    - {{ statusFromGlobalRepository.quotes_count }} -
    -
    -
    diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 59170f49d..47e4a45e5 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -25,7 +25,6 @@ const Timeline = { 'title', 'userId', 'listId', - 'statusId', 'tag', 'embedded', 'count', @@ -122,7 +121,6 @@ const Timeline = { showImmediately, userId: this.userId, listId: this.listId, - statusId: this.statusId, tag: this.tag }) }, @@ -185,7 +183,6 @@ const Timeline = { showImmediately: true, userId: this.userId, listId: this.listId, - statusId: this.statusId, tag: this.tag }).then(({ statuses }) => { if (statuses && statuses.length === 0) { diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js index c4586b327..5a2a86c2f 100644 --- a/src/components/timeline_menu/timeline_menu.js +++ b/src/components/timeline_menu/timeline_menu.js @@ -19,8 +19,7 @@ export const timelineNames = () => { bookmarks: 'nav.bookmarks', dms: 'nav.dms', 'public-timeline': 'nav.public_tl', - 'public-external-timeline': 'nav.twkn', - quotes: 'nav.quotes' + 'public-external-timeline': 'nav.twkn' } } diff --git a/src/i18n/cs.json b/src/i18n/cs.json index c3ba7ca46..9c04ede78 100644 --- a/src/i18n/cs.json +++ b/src/i18n/cs.json @@ -678,7 +678,7 @@ "autohide_floating_post_button": "Automaticky skrýt tlačítko nového příspěvku (mobilní zařízení)", "minimal_scopes_mode": "Minimalizovat možnosti rozsahu příspěvků", "conversation_display": "Styl zobrazení konverzací", - "conversation_display_tree": "Stromové zobrazení", + "conversation_display_tree": "Stromový styl", "conversation_display_tree_quick": "Stromový styl", "show_scrollbars": "Zobrazit posuvníky bočních sloupců", "third_column_mode": "Pokud je volné místo, zobrazit třetí sloupec obsahující", @@ -863,7 +863,7 @@ "favorites": "Oblíbené", "follow": "Sledovat", "follow_sent": "Požadavek odeslán!", - "follow_progress": "Odesílám požadavek…", + "follow_progress": "Odeslílám požadavek…", "follow_unfollow": "Přestat sledovat", "followees": "Sledovaní", "followers": "Sledující", diff --git a/src/i18n/en.json b/src/i18n/en.json index 0c3f26b9c..4f724b1b6 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -189,8 +189,7 @@ "mobile_notifications": "Open notifications (there are unread ones)", "mobile_notifications_close": "Close notifications", "mobile_notifications_mark_as_seen": "Mark all as seen", - "announcements": "Announcements", - "quotes": "Quotes" + "announcements": "Announcements" }, "notifications": { "broken_favorite": "Unknown status, searching for it…", @@ -374,14 +373,6 @@ "enter_current_password_to_confirm": "Enter your current password to confirm your identity", "post_look_feel": "Posts Look & Feel", "mention_links": "Mention links", - "appearance": "Appearance", - "confirm_new_setting": "Confirm new setting?", - "confirm_new_question": "Does this look ok? Setting will be reverted in 10 seconds.", - "revert": "Revert", - "confirm": "Confirm", - "text_size": "Text and interface size", - "text_size_tip": "Use {0} for absolute values, {1} will scale with browser default text size.", - "text_size_tip2": "Values other than {0} might break some things and themes", "mfa": { "otp": "OTP", "setup_otp": "Setup OTP", @@ -1066,7 +1057,6 @@ "status": { "favorites": "Favorites", "repeats": "Repeats", - "quotes": "Quotes", "repeat_confirm": "Do you really want to repeat this status?", "repeat_confirm_title": "Repeat confirmation", "repeat_confirm_accept_button": "Repeat", diff --git a/src/modules/api.js b/src/modules/api.js index 3dbead5b4..fee584e84 100644 --- a/src/modules/api.js +++ b/src/modules/api.js @@ -202,13 +202,12 @@ const api = { timeline = 'friends', tag = false, userId = false, - listId = false, - statusId = false + listId = false }) { if (store.state.fetchers[timeline]) return const fetcher = store.state.backendInteractor.startFetchingTimeline({ - timeline, store, userId, listId, statusId, tag + timeline, store, userId, listId, tag }) store.commit('addFetcher', { fetcherName: timeline, fetcher }) }, diff --git a/src/modules/config.js b/src/modules/config.js index 4d5e8efca..8001b854b 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -115,8 +115,7 @@ export const defaultState = { sidebarColumnWidth: '25rem', contentColumnWidth: '45rem', notifsColumnWidth: '25rem', - emojiReactionsScale: undefined, - textSize: undefined, // instance default + emojiReactionsScale: 1.0, navbarColumnStretch: false, greentext: undefined, // instance default useAtIcon: undefined, // instance default @@ -174,10 +173,6 @@ const config = { } }, mutations: { - setOptionTemporarily (state, { name, value }) { - set(state, name, value) - applyConfig(state) - }, setOption (state, { name, value }) { set(state, name, value) }, @@ -208,31 +203,6 @@ const config = { setHighlight ({ commit, dispatch }, { user, color, type }) { commit('setHighlight', { user, color, type }) }, - setOptionTemporarily ({ commit, dispatch, state, rootState }, { name, value }) { - if (rootState.interface.temporaryChangesTimeoutId !== null) { - console.warn('Can\'t track more than one temporary change') - return - } - const oldValue = state[name] - - commit('setOptionTemporarily', { name, value }) - - const confirm = () => { - dispatch('setOption', { name, value }) - commit('clearTemporaryChanges') - } - - const revert = () => { - commit('setOptionTemporarily', { name, value: oldValue }) - commit('clearTemporaryChanges') - } - - commit('setTemporaryChanges', { - timeoutId: setTimeout(revert, 10000), - confirm, - revert - }) - }, setOption ({ commit, dispatch, state }, { name, value }) { const exceptions = new Set([ 'useStreamingApi' @@ -261,7 +231,6 @@ const config = { case 'sidebarColumnWidth': case 'contentColumnWidth': case 'notifsColumnWidth': - case 'textSize': case 'emojiReactionsScale': applyConfig(state) break diff --git a/src/modules/instance.js b/src/modules/instance.js index 4a75d9487..0a5c1ae76 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -98,8 +98,6 @@ const defaultState = { sidebarRight: false, subjectLineBehavior: 'email', theme: 'pleroma-dark', - emojiReactionsScale: 1.0, - textSize: '14px', virtualScrolling: true, sensitiveByDefault: false, conversationDisplay: 'linear', diff --git a/src/modules/interface.js b/src/modules/interface.js index e21b4204b..39242b9d6 100644 --- a/src/modules/interface.js +++ b/src/modules/interface.js @@ -1,8 +1,5 @@ const defaultState = { themeApplied: false, - temporaryChangesTimeoutId: null, // used for temporary options that revert after a timeout - temporaryChangesConfirm: () => {}, // used for applying temporary options - temporaryChangesRevert: () => {}, // used for reverting temporary options settingsModalState: 'hidden', settingsModalLoadedUser: false, settingsModalLoadedAdmin: false, @@ -39,17 +36,6 @@ const interfaceMod = { state.settings.currentSaveStateNotice = { error: true, errorData: error } } }, - setTemporaryChanges (state, { timeoutId, confirm, revert }) { - state.temporaryChangesTimeoutId = timeoutId - state.temporaryChangesConfirm = confirm - state.temporaryChangesRevert = revert - }, - clearTemporaryChanges (state) { - clearTimeout(state.temporaryChangesTimeoutId) - state.temporaryChangesTimeoutId = null - state.temporaryChangesConfirm = () => {} - state.temporaryChangesRevert = () => {} - }, setThemeApplied (state) { state.themeApplied = true }, diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index fa4171936..a47c638c8 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -108,7 +108,6 @@ const PLEROMA_POST_ANNOUNCEMENT_URL = '/api/v1/pleroma/admin/announcements' const PLEROMA_EDIT_ANNOUNCEMENT_URL = id => `/api/v1/pleroma/admin/announcements/${id}` const PLEROMA_DELETE_ANNOUNCEMENT_URL = id => `/api/v1/pleroma/admin/announcements/${id}` const PLEROMA_SCROBBLES_URL = id => `/api/v1/pleroma/accounts/${id}/scrobbles` -const PLEROMA_STATUS_QUOTES_URL = id => `/api/v1/pleroma/statuses/${id}/quotes` const PLEROMA_USER_FAVORITES_TIMELINE_URL = id => `/api/v1/pleroma/accounts/${id}/favourites` const PLEROMA_ADMIN_CONFIG_URL = '/api/pleroma/admin/config' @@ -686,7 +685,6 @@ const fetchTimeline = ({ until = false, userId = false, listId = false, - statusId = false, tag = false, withMuted = false, replyVisibility = 'all', @@ -704,8 +702,7 @@ const fetchTimeline = ({ favorites: MASTODON_USER_FAVORITES_TIMELINE_URL, publicFavorites: PLEROMA_USER_FAVORITES_TIMELINE_URL, tag: MASTODON_TAG_TIMELINE_URL, - bookmarks: MASTODON_BOOKMARK_TIMELINE_URL, - quotes: PLEROMA_STATUS_QUOTES_URL + bookmarks: MASTODON_BOOKMARK_TIMELINE_URL } const isNotifications = timeline === 'notifications' const params = [] @@ -724,10 +721,6 @@ const fetchTimeline = ({ url = url(listId) } - if (timeline === 'quotes') { - url = url(statusId) - } - if (minId) { params.push(['min_id', minId]) } diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js index 8ceb897d9..62ee85496 100644 --- a/src/services/backend_interactor_service/backend_interactor_service.js +++ b/src/services/backend_interactor_service/backend_interactor_service.js @@ -5,8 +5,8 @@ import followRequestFetcher from '../../services/follow_request_fetcher/follow_r import listsFetcher from '../../services/lists_fetcher/lists_fetcher.service.js' const backendInteractorService = credentials => ({ - startFetchingTimeline ({ timeline, store, userId = false, listId = false, statusId = false, tag }) { - return timelineFetcher.startFetching({ timeline, store, credentials, userId, listId, statusId, tag }) + startFetchingTimeline ({ timeline, store, userId = false, listId = false, tag }) { + return timelineFetcher.startFetching({ timeline, store, credentials, userId, listId, tag }) }, fetchTimeline (args) { diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index e41e7125f..21e67b67a 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -331,7 +331,6 @@ export const parseStatus = (data) => { output.quote_id = pleroma.quote_id ? pleroma.quote_id : (output.quote ? output.quote.id : undefined) output.quote_url = pleroma.quote_url output.quote_visible = pleroma.quote_visible - output.quotes_count = pleroma.quotes_count } else { output.text = data.content output.summary = data.spoiler_text diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index a98456d30..369d2c9f1 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -148,19 +148,8 @@ export const applyTheme = async (input, onFinish = (data) => {}) => { return Promise.resolve() } -const configColumns = ({ - sidebarColumnWidth, - contentColumnWidth, - notifsColumnWidth, - emojiReactionsScale, - textSize -}) => ({ - sidebarColumnWidth, - contentColumnWidth, - notifsColumnWidth, - emojiReactionsScale, - textSize -}) +const configColumns = ({ sidebarColumnWidth, contentColumnWidth, notifsColumnWidth, emojiReactionsScale }) => + ({ sidebarColumnWidth, contentColumnWidth, notifsColumnWidth, emojiReactionsScale }) const defaultConfigColumns = configColumns(defaultState) @@ -186,7 +175,6 @@ export const applyConfig = (config) => { styleSheet.toString() styleSheet.insertRule(`:root { ${rules} }`, 'index-max') - body.classList.remove('hidden') } diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js index 2fed14bcb..8501907e4 100644 --- a/src/services/timeline_fetcher/timeline_fetcher.service.js +++ b/src/services/timeline_fetcher/timeline_fetcher.service.js @@ -24,7 +24,6 @@ const fetchAndUpdate = ({ showImmediately = false, userId = false, listId = false, - statusId = false, tag = false, until, since @@ -48,7 +47,6 @@ const fetchAndUpdate = ({ args.userId = userId args.listId = listId - args.statusId = statusId args.tag = tag args.withMuted = !hideMutedPosts if (loggedIn && ['friends', 'public', 'publicAndExternal'].includes(timeline)) { @@ -80,15 +78,15 @@ const fetchAndUpdate = ({ }) } -const startFetching = ({ timeline = 'friends', credentials, store, userId = false, listId = false, statusId = false, tag = false }) => { +const startFetching = ({ timeline = 'friends', credentials, store, userId = false, listId = false, tag = false }) => { const rootState = store.rootState || store.state const timelineData = rootState.statuses.timelines[camelCase(timeline)] const showImmediately = timelineData.visibleStatuses.length === 0 timelineData.userId = userId timelineData.listId = listId - fetchAndUpdate({ timeline, credentials, store, showImmediately, userId, listId, statusId, tag }) + fetchAndUpdate({ timeline, credentials, store, showImmediately, userId, listId, tag }) const boundFetchAndUpdate = () => - fetchAndUpdate({ timeline, credentials, store, userId, listId, statusId, tag }) + fetchAndUpdate({ timeline, credentials, store, userId, listId, tag }) return promiseInterval(boundFetchAndUpdate, 10000) } const timelineFetcher = {