diff --git a/app/js/post/post.js b/app/js/post/post.js index 9d9e49dd..f35c8a43 100644 --- a/app/js/post/post.js +++ b/app/js/post/post.js @@ -122,6 +122,10 @@ function post(mode, postvis) { console.log('This toot will be posted at:' + scheduled) schedule() toot.scheduled_at = scheduled + if($('#sch-box').hasClass('expire')) { + toot.scheduled_at = null + toot.expires_at = scheduled + } } else { var scheduled = '' } @@ -195,6 +199,20 @@ function post(mode, postvis) { } } } +function expPostMode() { + $('#sch-box').toggleClass('expire') + if($('#sch-box').hasClass('expire')) { + Swal.fire({ + type: 'info', + title: 'Expiring toot On' + }) + } else { + Swal.fire({ + type: 'info', + title: 'Expireing toot Off' + }) + } +} function misskeyPost() { var str = $('#textarea').val() var acct_id = $('#post-acct-sel').val() diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index 58c8924e..1a1a0b1d 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -950,7 +950,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { if (!quoteUser) { quoteUser = toot.quote.account.acct } - if(toot.quote_muted) { + if(!toot.quote.quote_muted) { poll = poll + `