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:
parent
5989b37d83
commit
f3b8fceb2e
@ -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),
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user