From fab840a759771b0ef72719bb02f60c5acccc6449 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sun, 1 Dec 2019 22:20:01 -0800
Subject: Add sort fields to rss.

- #348
---
 ui/src/components/user.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'ui/src/components/user.tsx')

diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx
index 6fff538f..b90f8167 100644
--- a/ui/src/components/user.tsx
+++ b/ui/src/components/user.tsx
@@ -250,7 +250,10 @@ export class User extends Component<any, UserState> {
           />
         </span>
         <a
-          href={`${document.location.origin}/feeds/u/${this.state.username}.xml`}
+          href={`/feeds/u/${this.state.username}.xml?sort=${
+            SortType[this.state.sort]
+          }`}
+          target="_blank"
         >
           <svg class="icon mx-2 text-muted small">
             <use xlinkHref="#icon-rss">#</use>
-- 
cgit v1.2.3

