From 90e2e0263d13c17381e3f00eb43c78dbab729660 Mon Sep 17 00:00:00 2001 From: Bin Wang Date: Fri, 5 Apr 2024 10:56:26 -0400 Subject: [PATCH] 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. --- lib/views/atom.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/views/atom.tsx b/lib/views/atom.tsx index 506435017..358fccf47 100644 --- a/lib/views/atom.tsx +++ b/lib/views/atom.tsx @@ -35,6 +35,9 @@ const RSS: FC<{ data: Data }> = ({ data }) => ( const Tag = `media:${key}`; return ; })} + {item.upvotes ? {item.upvotes} : ''} + {item.downvotes ? {item.downvotes} : ''} + {item.comments ? {item.comments} : ''} ))}