Skip to content

Commit

Permalink
Issue #49 Temporary Fix. Help wanted...
Browse files Browse the repository at this point in the history
  • Loading branch information
tizerm committed May 11, 2024
1 parent 0d8ea10 commit e641c4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/js/module/class_status.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ class Status {
if (this.notif_type && !['follow', 'follow_request'].includes(this.notif_type)) {
// 本文(通知の場合はstatusから)
this.content = data.status?.content
data = data.status
if (data.status) data = data.status
else { // TODO: statusがnullになる場合は一旦表示をやめる
this.__internal_error = true
return
}
} else this.content = data.content
this.emojis = new Emojis({
host: host,
Expand Down Expand Up @@ -312,6 +316,7 @@ class Status {
return this.mute_exclude
|| (this.from_timeline?.pref?.exclude_reblog && this.reblog)
|| (this.from_group?.pref?.tl_layout == 'gallery' && this.medias.length == 0)
|| this.__internal_error
}
// Getter: 本文をHTML解析して文章の部分だけを抜き出す
get content_text() {
Expand Down

0 comments on commit e641c4b

Please sign in to comment.