Commit 79e77b6
committed
fix: guard constructTweet against undefined full_text
The longShortClass calculation reads t.full_text.length without a
guard, throwing a TypeError when a tweet object has no full_text
property (observed in v1.9.6.5 during renderTimeline on profile
pages). Fall back to length 0 when full_text is missing so the
class assignment matches the existing short-tweet behaviour.1 parent 89e41a1 commit 79e77b6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| |||
0 commit comments