]> Untitled Git - lemmy-ui.git/commitdiff
Adding local rss feed.
authorDessalines <tyhou13@gmx.com>
Wed, 25 Nov 2020 20:19:42 +0000 (14:19 -0600)
committerDessalines <tyhou13@gmx.com>
Wed, 25 Nov 2020 20:19:42 +0000 (14:19 -0600)
src/shared/components/main.tsx

index 5f54efa178e5fa7a3b9bda316f5961b348275b7f..dbc5979c87f76f31395146220f534e0f649d97ae 100644 (file)
@@ -561,6 +561,18 @@ export class Main extends Component<any, MainState> {
             </svg>
           </a>
         )}
+        {this.state.listingType == ListingType.Local && (
+          <a
+            href={`/feeds/local.xml?sort=${this.state.sort}`}
+            target="_blank"
+            rel="noopener"
+            title="RSS"
+          >
+            <svg class="icon text-muted small">
+              <use xlinkHref="#icon-rss">#</use>
+            </svg>
+          </a>
+        )}
         {UserService.Instance.user &&
           this.state.listingType == ListingType.Subscribed && (
             <a