mirror of
https://github.com/Luzifer/mediatimeline.git
synced 2024-11-09 15:20:05 +00:00
Fix cleaning of deleted tweets
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
90e006ef41
commit
7b4546727b
1 changed files with 6 additions and 3 deletions
|
@ -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 a new issue