Instance owners can disable RSS

RSS is still enabled by default, but will be disabled on bibliogram.art.
This commit is contained in:
Cadence Fish
2020-02-01 16:15:12 +13:00
parent 94ed25adad
commit 341aade87c
8 changed files with 80 additions and 35 deletions

View File

@@ -1,3 +1,5 @@
//- Needs user, url, constants
include includes/timeline_page.pug
include includes/next_page_button.pug
@@ -30,7 +32,8 @@ html
div.profile-counter #[span(data-numberformat=user.following).count #{numberFormat(user.following)}] following
div.profile-counter #[span(data-numberformat=user.followedBy).count #{numberFormat(user.followedBy)}] followed by
div.links
a(rel="alternate" type="application/rss+xml" href=`/u/${user.data.username}/rss.xml`) RSS
if constants.settings.rss_enabled
a(rel="alternate" type="application/rss+xml" href=`/u/${user.data.username}/rss.xml`) RSS
a(rel="noreferrer noopener" href=`https://www.instagram.com/${user.data.username}`) instagram.com
- const hasPosts = !user.data.is_private && user.timeline.pages.length && user.timeline.pages[0].length