fix(core): fix interaction fields in atom feeds (#15121)

In #9355, interaction fields are introduced to atom feeds to give RSS
readers more information. But it has been removed after the code is
refactored to use tsx templates. This PR adds them back.
This commit is contained in:
Bin Wang 2024-04-05 10:56:26 -04:00 committed by GitHub
parent 860d7ad45f
commit 90e2e0263d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ const RSS: FC<{ data: Data }> = ({ data }) => (
const Tag = `media:${key}`;
return <Tag {...value} />;
})}
{item.upvotes ? <rsshub:upvotes>{item.upvotes}</rsshub:upvotes> : ''}
{item.downvotes ? <rsshub:downvotes>{item.downvotes}</rsshub:downvotes> : ''}
{item.comments ? <rsshub:comments>{item.comments}</rsshub:comments> : ''}
</entry>
))}
</feed>