forked from FoundKeyGang/FoundKey
server: dont error on generating empty RSS feed
Changelog: Fixed
This commit is contained in:
parent
0cf8f78e23
commit
3e9dd7957d
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export default async function(user: User) {
|
|||
const feed = new Feed({
|
||||
id: author.link,
|
||||
title: `${author.name} (@${user.username}@${config.host})`,
|
||||
updated: notes[0].createdAt,
|
||||
updated: notes[0]?.createdAt,
|
||||
generator: 'FoundKey',
|
||||
description: `${user.notesCount} Notes, ${profile.ffVisibility === 'public' ? user.followingCount : '?'} Following, ${profile.ffVisibility === 'public' ? user.followersCount : '?'} Followers${profile.description ? ` · ${profile.description}` : ''}`,
|
||||
link: author.link,
|
||||
|
|
Loading…
Reference in a new issue