diff --git a/lib/routes/douban/people/status.js b/lib/routes/douban/people/status.js index 03732f267..44c404a33 100644 --- a/lib/routes/douban/people/status.js +++ b/lib/routes/douban/people/status.js @@ -196,12 +196,12 @@ function getContentByActivity(ctx, item, params = {}, picsPrefixes = []) { let usernameAndAvatar = ''; if (readable) { - usernameAndAvatar += ``; + usernameAndAvatar += ``; } if (authorNameBold) { usernameAndAvatar += ``; } - usernameAndAvatar += status.parent_status.author.name; + usernameAndAvatar += status.parent_status.author === undefined ? '[原转发不可访问]' : status.parent_status.author.name; if (authorNameBold) { usernameAndAvatar += ``; } @@ -209,9 +209,9 @@ function getContentByActivity(ctx, item, params = {}, picsPrefixes = []) { usernameAndAvatar += ``; } usernameAndAvatar += `: `; - description += usernameAndAvatar + status.parent_status.text; + description += usernameAndAvatar + (status.parent_status.text === undefined ? '[原转发不可访问]' : status.parent_status.text); if (showRetweetTextInTitle) { - title += status.parent_status.author.name + ': ' + status.parent_status.text; + title += status.parent_status.text === undefined ? '[原转发不可访问]' : status.parent_status.author.name + ': ' + status.parent_status.text; } } @@ -268,8 +268,8 @@ function getContentByActivity(ctx, item, params = {}, picsPrefixes = []) { } if (status.reshared_status.deleted) { - description += `原动态不可访问`; - title += `原动态不可访问`; + description += `[原动态不可访问]`; + title += `[原动态不可访问]`; } else { description += getContentByActivity( ctx,