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:
parent
860d7ad45f
commit
90e2e0263d
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue