diff options
author | Dessalines <tyhou13@gmx.com> | 2019-12-07 16:39:43 -0800 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-12-07 16:39:43 -0800 |
commit | a29af98e4bc2df045052a935030abe2e31ca22e1 (patch) | |
tree | a2295c1c5217ba9cc9463990b2e67b6354465576 /ui/src/components/main.tsx | |
parent | 88402909ff841bb397c461855321a904397120ef (diff) |
Adding RSS feeds for inbox and subscribed. Refactored RSS code.
- Fixes #349
Diffstat (limited to 'ui/src/components/main.tsx')
-rw-r--r-- | ui/src/components/main.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
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> ); } |