1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-12-04 14:46:37 -05:00

Enabled ListForums for Lemmy

This commit is contained in:
マリウス 2023-01-05 17:07:09 -05:00
parent 5989b37d83
commit f3b8fceb2e
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

View File

@ -49,10 +49,10 @@ func (sys *System) GetCapabilities() adapter.Capabilities {
caps = append(caps,
// TODO: https://github.com/Arsen6331/go-lemmy/issues/2
// adapter.Capability{
// ID: "list:forums",
// Name: "List Forums",
// },
adapter.Capability{
ID: "list:forums",
Name: "List Forums",
},
adapter.Capability{
ID: "list:posts",
Name: "List Posts",
@ -129,9 +129,6 @@ func (sys *System) Load() error {
}
func (sys *System) ListForums() ([]forum.Forum, error) {
return []forum.Forum{}, nil
// Not possible to list forums atm
resp, err := sys.client.ListCommunities(context.Background(), types.ListCommunities{
Type: types.NewOptional(types.ListingTypeSubscribed),
})