1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-12-04 14:46:37 -05:00
neonmodem/system/lemmy/lemmy.go
2022-12-28 22:22:36 -05:00

37 lines
614 B
Go

package lemmy
import (
"github.com/mrusme/gobbs/models/post"
"github.com/mrusme/gobbs/system/adapter"
)
type System struct {
}
func (sys *System) Load() error {
return nil
}
func (sys *System) ListPosts() ([]post.Post, error) {
return []post.Post{}, nil
}
func (sys *System) GetCapabilities() []adapter.Capability {
var caps []adapter.Capability
caps = append(caps, adapter.Capability{
ID: "posts",
Name: "Posts",
})
caps = append(caps, adapter.Capability{
ID: "groups",
Name: "Groups",
})
caps = append(caps, adapter.Capability{
ID: "search",
Name: "Search",
})
return caps
}