Nodes with registration policy "requires approval" should be listed #28
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-directory#28
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
I hope this is the right place to report issues for the directory.
Expected behavior
Nodes with registration policy "requires approval" should be listed on the directory's server list.
Actual wrongdoing
Nodes with registration policy "requires approval" are not listed on the directory's server list. Which is kind of confusing because the nodeinfo says "openRegistrations: true" and the node is therefore listed as 'open' on the-federation.info/friendica but not on our own directory.
Steps to reproduce
Set registration policy to "requires approval" and check your nodeinfo and (after some time) the server list on your configured global directory server.
Directories used for testing
dir.libranet.de 2.2.1
dir.friendica.social 2.2.1
Friendica used for testing
libranet.de 2019.03
mordor.social 2019.03
PHP/SQL
PHP 7.2.15 / MariaDB 10.1.38
@MrPetovan What do you think? Would it be good enough to simply change the queries from
WHERE `reg_policy` = "REGISTER_OPEN"
toWHERE `reg_policy` != "REGISTER_CLOSED"
?I did that in my own directory locally and it seems to work.
https://dir.libranet.de/servers
If you agree I'll do a PR on the weekend.
Absolutely.
Thanks for checking your GitHub notifications. :-)
Nice one @AlfredSK !
I created the PR #35 :-)