From 52ea7a32db439f9d9b0785ee132d312aa386b33e Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sun, 1 Dec 2019 17:21:19 -0800
Subject: Some RSS work.

- Display rss buttons on front end for user, /c/all, and community
pages. Fixes #348.
- Some clean up and additions to RSS feeds.
---
 ui/src/components/community.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

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

diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index cfeff085..a8ec9331 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -174,6 +174,13 @@ export class Community extends Component<any, State> {
     return (
       <div class="mb-2">
         <SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
+        <a
+          href={`${document.location.origin}/feeds/c/${this.state.communityName}.xml`}
+        >
+          <svg class="icon mx-2 text-muted small">
+            <use xlinkHref="#icon-rss">#</use>
+          </svg>
+        </a>
       </div>
     );
   }
-- 
cgit v1.2.3

