🚨 尝试修复Sentry报错

Cannot read properties of undefined (reading 'upvote_type')
This commit is contained in:
BTMuli
2026-03-11 11:26:55 +08:00
parent d30a70d4aa
commit 9f707db9f7
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
/**
* 帖子类型定义文件
* @since Beta v0.8.6
* @since Beta v0.9.8
*/
declare namespace TGApp.BBS.Post {
@@ -124,7 +124,7 @@ declare namespace TGApp.BBS.Post {
/**
* 帖子数据
* @since Beta v0.7.2
* @since Beta v0.9.8
*/
type FullData = {
/** 帖子信息 */
@@ -136,7 +136,7 @@ declare namespace TGApp.BBS.Post {
/** 发帖人,可能为 null */
user: User | null;
/** 当前用户操作 */
self_operation: TGApp.BBS.User.SelfOperation;
self_operation: TGApp.BBS.User.SelfOperation | null;
/** 帖子统计,可能为 null */
stat: Stat | null;
/** 帮助系统,可能为 null */