Allow using custom source URLs #421
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#421
Loading…
Reference in a new issue
No description provided.
Delete branch "Oneric/akkoma-fe:custom-source"
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?
Some instances carry a few patches, most often frontend patches, which atm results in broken source links which makes it hard to determine what the patches are and potentially adopting them (and technically may also violate the AGPL licence)
With a convenient way to point to the correct repo such broken links will hopefully become rarer
To avoid having to specify the default URLs twice values are only set if fetched configs actually defined it
9c0b9999d9
toc4301ae802
I tried teaching admin-fe about this with this backend diff:
, however this causes admin-fe to set those fields to an empty string instead of leaving it undefined, or at least
null
. Not sure if there’s a better way to deal with this than adding checks for those here in the frontend code.For regular options admin-fe has the option to completely remove it from settings, but this doesn't seem to work for the frontend config map entries; only the entire map can be deleted
c4301ae802
toad3ac7a292
Empty string,
null
andundefined
all are falsy values in JS, so the check is actually quite simple. The NSFW censor image also relies on this using an empty string to invoke the default fallback, so it seems there’s no cleaner way with admin-fe. Changed check accordingly to let admin-fe work with these new settings@ -13,4 +12,3 @@
},
computed: {
frontendVersionLink () {
return pleromaFeCommitUrl + this.frontendVersion
we might want to consider using some for of
urljoin
function, because this makes it 100% mandatory to have the trailing slash in the configdone with
URL.parse()
which won't throw exceptions itself, and since i wasn’t sure if anull
might lead to exceptions later it gets stubbed out for an invalid configad3ac7a292
to42ba77ebf4
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.