#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) { if (this.status !== 200) {
setLog(start, this.status, this.response) setLog(start, this.status, this.response)
} }
announ(acct_id, tlid) setTimeout(function () {
announ(acct_id, tlid)
}, 3000)
} }
} }
} }

View File

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

View File

@ -423,7 +423,7 @@ function parseColumn(target, dontclose) {
</div> </div>
</div> </div>
<div class="column-hide notf-indv-box z-depth-4" id="notf-box_${notfKey}"> <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 id="notifications_${notfKey}" data-notf="${notfDomain}" data-type="notf" class="notf-timeline">
</div> </div>
</div> </div>