mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 14:55:41 +01:00
Syndicate is working! Instagra & Pixelfed demonstrated with the new post attached. Lots of TODOs, but functional enough :)
28 lines
572 B
Go
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")
|
|
}
|