Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Create new group" button is not visible until after account is member of at least one group #14099

Open
TheTomcat14 opened this issue Apr 17, 2024 · 0 comments
Labels

Comments

@TheTomcat14
Copy link

TheTomcat14 commented Apr 17, 2024

Bug Description

I wanted to test the "User group" functionality in Friendica.
I did so based on this Documentation entry: https://wiki.friendi.ca/docs/groups-and-privacy

Upon browsing to the "Network" page, the "Create new group" button was not visible.
Clicking on the "Groups" link under the "Circles" box did not give any of the possibilities described in the documentation.
(I guess that's because User groups aren't circles but instead "Community accounts")

The "Create new group" button on the Network page only displays when the account is already a member of at least one group.

I think this is because of the code in src\Content\GroupManager.php, line 125
if (DBA::isResult($contacts)) {

The DBA::isResult() function checks if the result contains at least one result.
If there are no results then the whole widget, including the add group button, is not rendered.

Steps to Reproduce

  1. Create an account and login
  2. Go to the Network page
  3. No add group button is visible
  4. Go to the "Settings" of your account
  5. Click "manage accounts"
  6. Register an additional account
  7. Switch to that additional account, go to the settings and change the advanced account type to "community group"
  8. Switch back to the parent account
  9. Follow the community account you just created (if the follow request needs approval, switch back to the community account and approve it, after approval switch back to the parent account)
  10. In the parent account go to Network, the group widget will now appear together with the "create new group" button

Platform Info

Friendica Version: Friendica 'Yellow Archangel' 2024.03 - 1557

PHP version: 8.1.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant