all repos — underbbs @ aecfd97c96bef0ed18720c9db1dba360990f3ec5

decentralized social media client

MisskeyAdapter, NostrAdapter: try to fix misskey client context timeout, fix type signatures
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQT/foVVmI9pK13hPWFohAcXSWbK8wUCZr/wcQAKCRBohAcXSWbK
8w6vAP4hTN7biH7blaBmSZ6FSiovAPtsKtgrVs6iNptR02IxYQEAnkaa57PVPgjb
b/9xbDLmS8f3gPiS0rFYitl7sTR2fQ8=
=7tbH
-----END PGP SIGNATURE-----
commit

aecfd97c96bef0ed18720c9db1dba360990f3ec5

parent

67ec0e18093f5b7f90f32e0a09907f5e6a1cc60a

2 files changed, 6 insertions(+), 5 deletions(-)

jump to
M adapter/misskey.goadapter/misskey.go

@@ -89,8 +89,8 @@ func (self *MisskeyAdapter) poll() {

var latest *time.Time - notesService := self.mk.Notes() - timelineService := notesService.Timeline() + var notesService *n.Service + var timelineService *tl.Service for { select {

@@ -99,7 +99,8 @@ if !ok {

return } default: - + notesService = self.mk.Notes() + timelineService = notesService.Timeline() // TODO: we have to actually decode and pass our filter criteria // probe for new notes

@@ -265,7 +266,7 @@

return &author } -func (self *MisskeyAdapter) Fetch(etype, ids []string) error { +func (self *MisskeyAdapter) Fetch(etype string, ids []string) error { for _, id := range ids { switch etype { case "message":
M adapter/nostr.goadapter/nostr.go

@@ -79,7 +79,7 @@ fmt.Println("subscription operation completed without errors")

return nil } -func (self *NostrAdapter) Fetch(etype, ids []string) error { +func (self *NostrAdapter) Fetch(etype string, ids []string) error { return nil }