www.byjp.me/tools/syndicate/services/bluesky/init.go
JP Hastings-Spital c135910850 Working pixelfed & insta posting
Syndicate is working! Instagra & Pixelfed demonstrated with the new post attached.

Lots of TODOs, but functional enough :)
2023-11-12 07:43:08 +00:00

28 lines
572 B
Go

package bluesky
import (
"fmt"
"regexp"
"github.com/by-jp/www.byjp.me/tools/syndicate/shared"
)
func init() {
shared.Register("bluesky", New)
}
func New(config map[string]any) (shared.Service, error) {
return &service{}, nil
}
func (s *service) BackfeedMatcher() (*regexp.Regexp, error) {
return regexp.Compile(`https://bsky.app/profile/(?P<username>[a-zA-Z0-9_-]+)/post/(?P<id>[a-zA-Z0-9_-]+)/`)
}
func (s *service) Connect(force bool) error {
return fmt.Errorf("not implemented")
}
func (s *service) Close() error {
return fmt.Errorf("not implemented")
}