mirror of
https://github.com/Luzifer/mediatimeline.git
synced 2024-09-19 16:02:57 +00:00
Fix cleaning of deleted tweets
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
90e006ef41
commit
7b4546727b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user