Make display of links to public external timeline dependent on restrict_unauthenticated setting (#204) #216
No reviewers
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#216
Loading…
Reference in a new issue
No description provided.
Delete branch "fedward:issue204"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create new showPublicExternalTimeline boolean and depend on it for display of public external timeline links in navigation.
@ -92,6 +92,7 @@ export default {
editingAvailable () { return this.$store.state.instance.editingAvailable },
layoutType () { return this.$store.state.interface.layoutType },
privateMode () { return this.$store.state.instance.private },
showPublicExternalTimeline () {return currentUser() || !(privateMode || this.$store.state.instance.restrict_unauthenticated.timelines.federated) },
nit:
{return => { return
surprised the console didn't scream at you for that
actually it's probably too big to be a oneliner, try this
@ -49,3 +49,3 @@
</router-link>
</li>
<li v-if="federating && (currentUser || !privateMode)">
<li v-if="federating && showPublicExternalTimeline">
maybe
federating
should be grouped into this new variable as well?My goal was the lightest possible change, but I thought about that. But then I also thought that maybe there should be a corresponding variable for the local timeline so the style could be consistent wherever those links appear.
well it makes sense for it to be grouped; it wouldn't
show
if it doesn't federate, so the name is a bit misleading if it's not in thereMake display of links to public external timeline dependent on restrict_unauthenticated settingto Make display of links to public external timeline dependent on restrict_unauthenticated setting (#204)superseded by #250
Pull request closed