You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I am planning to add a list of missing features so people can help out. But as an ad-hoc request I am adding this as a task someone can pickup and do that is quite spesific.
Explanation of that is needed
A group should list (in the spec its called OrderedCollection) the members (followers) of the group, for example here is the output of a working group:
In the log one this actually needs to support pagination. And to return correct partOf and next entries.
Development tips.
If you are having troubble to set up the webserver, you write some cli tool that returns the json and then this can be adapted to be part of the web fastapi later on (but it would be better to have this as a PR where it was tested on the webserver).
The text was updated successfully, but these errors were encountered:
Hey,
I am planning to add a list of missing features so people can help out. But as an ad-hoc request I am adding this as a task someone can pickup and do that is quite spesific.
Explanation of that is needed
A group should list (in the spec its called OrderedCollection) the members (followers) of the group, for example here is the output of a working group:
The spec for this is here:
https://www.w3.org/TR/activitypub/#followers
curl https://hayu.sh/users/guysoft/following -H "Accept: application/json"
example output:
Note that the list holds
orderedItems
which lists the users following the group (aka its members)What exists in fedigroup
In fedigroup this is defined here in the endpoint:
https://github.com/guysoft/fedigroup/blob/main/src/app/main.py#L320
The json is a stub and returns hard-coded only one user:
https://github.com/guysoft/fedigroup/blob/main/src/app/main.py#LL369C1-L369C55
What is actually needed is to retrieve the the list of members using the database, this can be done using this function:
(get_members_list in crud.py)
https://github.com/guysoft/fedigroup/blob/main/src/app/crud.py#L274
How to improve this
In the log one this actually needs to support pagination. And to return correct partOf and next entries.
Development tips.
If you are having troubble to set up the webserver, you write some cli tool that returns the json and then this can be adapted to be part of the web fastapi later on (but it would be better to have this as a PR where it was tested on the webserver).
The text was updated successfully, but these errors were encountered: