Beta: fedibird expires_at
This commit is contained in:
parent
2b5637f388
commit
1266ef44ee
|
@ -122,6 +122,10 @@ function post(mode, postvis) {
|
||||||
console.log('This toot will be posted at:' + scheduled)
|
console.log('This toot will be posted at:' + scheduled)
|
||||||
schedule()
|
schedule()
|
||||||
toot.scheduled_at = scheduled
|
toot.scheduled_at = scheduled
|
||||||
|
if($('#sch-box').hasClass('expire')) {
|
||||||
|
toot.scheduled_at = null
|
||||||
|
toot.expires_at = scheduled
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
var scheduled = ''
|
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() {
|
function misskeyPost() {
|
||||||
var str = $('#textarea').val()
|
var str = $('#textarea').val()
|
||||||
var acct_id = $('#post-acct-sel').val()
|
var acct_id = $('#post-acct-sel').val()
|
||||||
|
|
|
@ -404,7 +404,7 @@
|
||||||
style="margin:0"
|
style="margin:0"
|
||||||
/>
|
/>
|
||||||
<div id="sch-box">
|
<div id="sch-box">
|
||||||
@@postat@@<br /><span class="sml">@@scheduleWarn@@</span><br />
|
@@postat@@<br /><span class="sml">@@scheduleWarn@@</span><a onclick="expPostMode()">Expire mode(beta)</a><br />
|
||||||
<input
|
<input
|
||||||
type="datetime-local"
|
type="datetime-local"
|
||||||
id="sch-date"
|
id="sch-date"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user