From 233442936ace37d92251175d9c86b2fd23d1029c Mon Sep 17 00:00:00 2001 From: cutls Date: Wed, 8 Apr 2020 14:54:14 +0900 Subject: [PATCH] Fix: delete when unreblog --- app/js/tl/tl.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/js/tl/tl.js b/app/js/tl/tl.js index 9751aa60..23cc437a 100644 --- a/app/js/tl/tl.js +++ b/app/js/tl/tl.js @@ -273,15 +273,15 @@ function reload(type, cc, acct_id, tlid, data, mute, delc, voice, mode) { if (typeA == 'delete') { var obj = JSON.parse(mess.data).payload if (delc == 'true') { - $('#timeline_' + tlid + ' [toot-id=' + JSON.parse(mess.data).payload + ']').addClass( + $('#timeline_' + tlid + ' [unique-id=' + JSON.parse(mess.data).payload + ']').addClass( 'emphasized' ) - $('#timeline_' + tlid + ' [toot-id=' + JSON.parse(mess.data).payload + ']').addClass( + $('#timeline_' + tlid + ' [unique-id=' + JSON.parse(mess.data).payload + ']').addClass( 'by_delcatch' ) } else { - $('[toot-id=' + JSON.parse(mess.data).payload + ']').hide() - $('[toot-id=' + JSON.parse(mess.data).payload + ']').remove() + $('[unique-id=' + JSON.parse(mess.data).payload + ']').hide() + $('[unique-id=' + JSON.parse(mess.data).payload + ']').remove() } } else if (typeA == 'update' || typeA == 'conversation') { if (!$('#unread_' + tlid + ' .material-icons').hasClass('teal-text')) {