From a29af98e4bc2df045052a935030abe2e31ca22e1 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sat, 7 Dec 2019 16:39:43 -0800
Subject: Adding RSS feeds for inbox and subscribed. Refactored RSS code.

- Fixes #349
---
 ui/src/components/main.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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

diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx
index f4ec779f..0d6be91d 100644
--- a/ui/src/components/main.tsx
+++ b/ui/src/components/main.tsx
@@ -444,6 +444,19 @@ export class Main extends Component<any, MainState> {
             </svg>
           </a>
         )}
+        {UserService.Instance.user &&
+          this.state.type_ == ListingType.Subscribed && (
+            <a
+              href={`/feeds/front/${UserService.Instance.auth}.xml?sort=${
+                SortType[this.state.sort]
+              }`}
+              target="_blank"
+            >
+              <svg class="icon mx-1 text-muted small">
+                <use xlinkHref="#icon-rss">#</use>
+              </svg>
+            </a>
+          )}
       </div>
     );
   }
-- 
cgit v1.2.3

