fix error thread view
This commit is contained in:
parent
ed4431e15a
commit
c83079bb80
|
@ -49,6 +49,7 @@ async function details(id, acct_id, tlid, mode) {
|
||||||
const json = await response.json()
|
const json = await response.json()
|
||||||
console.log(['Toot data:', json])
|
console.log(['Toot data:', json])
|
||||||
if (!$('#timeline_' + tlid + ' #pub_' + id).length) {
|
if (!$('#timeline_' + tlid + ' #pub_' + id).length) {
|
||||||
|
var mute = getFilterTypeByAcct(acct_id, 'thread')
|
||||||
var html = parse([json], '', acct_id, '', '', mute)
|
var html = parse([json], '', acct_id, '', '', mute)
|
||||||
$('#toot-this').html(html)
|
$('#toot-this').html(html)
|
||||||
jQuery('time.timeago').timeago()
|
jQuery('time.timeago').timeago()
|
||||||
|
@ -126,7 +127,7 @@ async function details(id, acct_id, tlid, mode) {
|
||||||
if (!$('#activator').hasClass('active')) {
|
if (!$('#activator').hasClass('active')) {
|
||||||
$('#det-col').collapsible('open', 4)
|
$('#det-col').collapsible('open', 4)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (error) {
|
||||||
todo(error)
|
todo(error)
|
||||||
setLog(start, 'JSON', error)
|
setLog(start, 'JSON', error)
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user