From: Dessalines Date: Tue, 25 Jan 2022 03:24:32 +0000 (-0500) Subject: Adding rss links. Fixes #548 (#549) X-Git-Url: http://these/git/%7BpictrsAvatarThumbnail%28?a=commitdiff_plain;h=1d085dea1289595bd08a35886b875574f1fc6233;p=lemmy-ui.git Adding rss links. Fixes #548 (#549) --- diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx index cdab971..db56bcc 100644 --- a/src/shared/components/community/community.tsx +++ b/src/shared/components/community/community.tsx @@ -354,6 +354,10 @@ export class Community extends Component { } selects() { + let communityRss = communityRSSUrl( + this.state.communityRes.community_view.community.actor_id, + this.state.sort + ); return (
@@ -365,16 +369,10 @@ export class Community extends Component { - + +
); } diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index d64a852..5d430a6 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -669,6 +669,12 @@ export class Home extends Component { } selects() { + let allRss = `/feeds/all.xml?sort=${this.state.sort}`; + let localRss = `/feeds/local.xml?sort=${this.state.sort}`; + let frontRss = UserService.Instance.myUserInfo + ? `/feeds/front/${UserService.Instance.auth}.xml?sort=${this.state.sort}` + : ""; + return (
@@ -688,32 +694,33 @@ export class Home extends Component { {this.state.listingType == ListingType.All && ( - - - + <> + + + + + )} {this.state.listingType == ListingType.Local && ( - - - + <> + + + + + )} {UserService.Instance.myUserInfo && this.state.listingType == ListingType.Subscribed && ( - - - + <> + + + + + )}
); diff --git a/src/shared/components/person/inbox.tsx b/src/shared/components/person/inbox.tsx index b1f14e2..470ef5e 100644 --- a/src/shared/components/person/inbox.tsx +++ b/src/shared/components/person/inbox.tsx @@ -140,6 +140,7 @@ export class Inbox extends Component { } render() { + let inboxRss = `/feeds/inbox/${UserService.Instance.auth}.xml`; return (
{this.state.loading ? ( @@ -156,13 +157,14 @@ export class Inbox extends Component {
{i18n.t("inbox")} - + +
{this.state.replies.length + diff --git a/src/shared/components/person/profile.tsx b/src/shared/components/person/profile.tsx index e36d014..0f567d2 100644 --- a/src/shared/components/person/profile.tsx +++ b/src/shared/components/person/profile.tsx @@ -335,6 +335,8 @@ export class Profile extends Component { } selects() { + let profileRss = `/feeds/u/${this.state.userName}.xml?sort=${this.state.sort}`; + return (
{this.viewRadios()} @@ -344,13 +346,10 @@ export class Profile extends Component { hideHot hideMostComments /> - + +
); }