+
diff --git a/src/i18n/en.json b/src/i18n/en.json
index f9262f08..eec101f7 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -75,6 +75,8 @@
"password_confirm": "Password confirmation",
"registration": "Registration",
"token": "Invite token",
+ "captcha": "CAPTCHA",
+ "new_captcha": "Click the image to get a new captcha",
"validations": {
"username_required": "cannot be left blank",
"fullname_required": "cannot be left blank",
diff --git a/src/modules/api.js b/src/modules/api.js
index 2f07a91e..a61340c2 100644
--- a/src/modules/api.js
+++ b/src/modules/api.js
@@ -46,9 +46,6 @@ const api = {
store.commit('addFetcher', {timeline, fetcher})
}
},
- fetchOldPost (store, { postId }) {
- store.state.backendInteractor.fetchOldPost({ store, postId })
- },
stopFetching (store, timeline) {
const fetcher = store.state.fetchers[timeline]
window.clearInterval(fetcher)
diff --git a/src/modules/statuses.js b/src/modules/statuses.js
index 5bbf5f46..8c2d36bc 100644
--- a/src/modules/statuses.js
+++ b/src/modules/statuses.js
@@ -27,8 +27,7 @@ export const defaultState = {
maxId: 0,
minId: Number.POSITIVE_INFINITY,
data: [],
- error: false,
- brokenFavorites: {}
+ error: false
},
favorites: new Set(),
error: false,
@@ -36,7 +35,6 @@ export const defaultState = {
mentions: emptyTl(),
public: emptyTl(),
user: emptyTl(),
- own: emptyTl(),
publicAndExternal: emptyTl(),
friends: emptyTl(),
tag: emptyTl(),
@@ -158,12 +156,6 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
const result = mergeOrAdd(allStatuses, allStatusesObject, status)
status = result.item
- const brokenFavorites = state.notifications.brokenFavorites[status.id] || []
- brokenFavorites.forEach((fav) => {
- fav.status = status
- })
- delete state.notifications.brokenFavorites[status.id]
-
if (result.new) {
// We are mentioned in a post
if (statusType(status) === 'status' && find(status.attentions, { id: user.id })) {
@@ -304,7 +296,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
const fresh = !notification.is_seen
const status = notification.ntype === 'like'
- ? find(allStatuses, { id: action.in_reply_to_status_id })
+ ? action.favorited_status
: action
const result = {
@@ -314,17 +306,6 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
seen: !fresh
}
- if (notification.ntype === 'like' && !status) {
- let broken = state.notifications.brokenFavorites[action.in_reply_to_status_id]
- if (broken) {
- broken.push(result)
- } else {
- dispatch('fetchOldPost', { postId: action.in_reply_to_status_id })
- broken = [ result ]
- state.notifications.brokenFavorites[action.in_reply_to_status_id] = broken
- }
- }
-
state.notifications.data.push(result)
if ('Notification' in window && window.Notification.permission === 'granted') {
diff --git a/src/modules/users.js b/src/modules/users.js
index 31fe94fc..13d3f26e 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -195,8 +195,6 @@ const users = {
// Start getting fresh tweets.
store.dispatch('startFetching', 'friends')
- // Start getting our own posts, only really needed for mitigating broken favorites
- store.dispatch('startFetching', ['own', user.id])
// Get user mutes and follower info
store.rootState.api.backendInteractor.fetchMutes().then((mutedUsers) => {
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index b509c905..182f9126 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -300,9 +300,6 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use
notifications: QVITTER_USER_NOTIFICATIONS_URL,
'publicAndExternal': PUBLIC_AND_EXTERNAL_TIMELINE_URL,
user: QVITTER_USER_TIMELINE_URL,
- // separate timeline for own posts, so it won't break due to user timeline bugs
- // really needed only for broken favorites
- own: QVITTER_USER_TIMELINE_URL,
tag: TAG_TIMELINE_URL
}
diff --git a/src/services/backend_interactor_service/backend_interactor_service.js b/src/services/backend_interactor_service/backend_interactor_service.js
index cc72f607..f44f52b6 100644
--- a/src/services/backend_interactor_service/backend_interactor_service.js
+++ b/src/services/backend_interactor_service/backend_interactor_service.js
@@ -54,16 +54,6 @@ const backendInteractorService = (credentials) => {
return timelineFetcherService.startFetching({timeline, store, credentials, userId})
}
- const fetchOldPost = ({store, postId}) => {
- return timelineFetcherService.fetchAndUpdate({
- store,
- credentials,
- timeline: 'own',
- older: true,
- until: postId + 1
- })
- }
-
const setUserMute = ({id, muted = true}) => {
return apiService.setUserMute({id, muted, credentials})
}
@@ -97,7 +87,6 @@ const backendInteractorService = (credentials) => {
fetchAllFollowing,
verifyCredentials: apiService.verifyCredentials,
startFetching,
- fetchOldPost,
setUserMute,
fetchMutes,
register,