1
0
mirror of https://github.com/Luzifer/mediatimeline.git synced 2024-09-18 23:42:56 +00:00

Fix cleaning of deleted tweets

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-12 13:47:12 +01:00
parent 90e006ef41
commit 7b4546727b
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -31,10 +31,13 @@ new Vue({
.then(() => {
const tweets = []
for (const t in this.tweets) {
if (t.id !== tweet.id) {
tweets.push(t)
for (const i in this.tweets) {
const t = this.tweets[i]
if (t.id === tweet.id) {
continue
}
tweets.push(t)
}
this.tweets = tweets