#317 announcement bug

This commit is contained in:
cutls 2020-09-04 23:54:49 +09:00
parent bec4444388
commit 4df390713c
3 changed files with 5 additions and 3 deletions

View File

@ -111,7 +111,9 @@ function announReaction(id, acct_id, tlid, del, name) {
if (this.status !== 200) {
setLog(start, this.status, this.response)
}
setTimeout(function () {
announ(acct_id, tlid)
}, 3000)
}
}
}

View File

@ -1457,7 +1457,7 @@ function announ(acct_id, tlid) {
$('.notf-announ_' + acct_id).addClass('hide')
}
var templete = announParse(json, acct_id, tlid)
$('#announce_' + tlid).html(templete)
$('.announce_' + acct_id).html(templete)
jQuery('time.timeago').timeago()
todc()
}

View File

@ -423,7 +423,7 @@ function parseColumn(target, dontclose) {
</div>
</div>
<div class="column-hide notf-indv-box z-depth-4" id="notf-box_${notfKey}">
<div id="announce_${notfKey}" style="border: 1px solid"></div>
<div class="announce_${acct.domain}" style="border: 1px solid"></div>
<div id="notifications_${notfKey}" data-notf="${notfDomain}" data-type="notf" class="notf-timeline">
</div>
</div>