6
57
Fork
You've already forked smolfedi
5

Add single instance setting #19

Open
sun wants to merge 1 commit from sun/smolfedi:main into main
pull from: sun/smolfedi:main
merge into: adele:main
adele:main
First-time contributor
Copy link

I'm coming from bloat, which has a setting to only allow users from a specific instance to log in. This PR adds a similar feature to SmolFedi.

It adds a new SINGLE_INSTANCE setting. When enabled, SmolFedi doesn't display an input field for the instance URL, instead only showing the DEFAULT_INSTANCE as text/information for the user.

I've also updated the POST request processing code accordingly, to make sure the setting can't be bypassed.

I'm coming from [bloat](https://git.freesoftwareextremist.com/bloat/about/), which has a setting to only allow users from a specific instance to log in. This PR adds a similar feature to SmolFedi. It adds a new `SINGLE_INSTANCE` setting. When enabled, SmolFedi doesn't display an input field for the instance URL, instead only showing the `DEFAULT_INSTANCE` as text/information for the user. I've also updated the POST request processing code accordingly, to make sure the setting can't be bypassed.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:sun-main
git switch sun-main

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff sun-main
git switch sun-main
git rebase main
git switch main
git merge --ff-only sun-main
git switch sun-main
git rebase main
git switch main
git merge --no-ff sun-main
git switch main
git merge --squash sun-main
git switch main
git merge --ff-only sun-main
git switch main
git merge sun-main
git push origin main
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adele/smolfedi!19
Reference in a new issue
adele/smolfedi
No description provided.
Delete branch "sun/smolfedi:main"

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?