diff options
author | Dessalines <tyhou13@gmx.com> | 2019-12-01 22:20:01 -0800 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-12-01 22:22:05 -0800 |
commit | fab840a759771b0ef72719bb02f60c5acccc6449 (patch) | |
tree | 9dcc6b938073c1b7c66d58632358add7f95d9a60 /ui/src/components/community.tsx | |
parent | 32c1d56bc75c6457da2c056ea9a9aa482786a88b (diff) |
Add sort fields to rss.
- #348
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r-- | ui/src/components/community.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index a8ec9331..712aeb7e 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -175,7 +175,10 @@ export class Community extends Component<any, State> { <div class="mb-2"> <SortSelect sort={this.state.sort} onChange={this.handleSortChange} /> <a - href={`${document.location.origin}/feeds/c/${this.state.communityName}.xml`} + href={`/feeds/c/${this.state.communityName}.xml?sort=${ + SortType[this.state.sort] + }`} + target="_blank" > <svg class="icon mx-2 text-muted small"> <use xlinkHref="#icon-rss">#</use> |