Skip to content

Commit

Permalink
pds: remove app.bsky.* endpoints (#513)
Browse files Browse the repository at this point in the history
This code is unused. These routes are not served from the PDS, they get
served from the AppView.

In theory the implementation might be useful for a future golang
appview; we can grab the code from git history if needed.
  • Loading branch information
bnewbold authored Jan 2, 2024
2 parents e49ccf1 + 0cb3f80 commit 4abad0f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1,454 deletions.
3 changes: 1 addition & 2 deletions labeler/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/bluesky-social/indigo/indexer"
lexutil "github.com/bluesky-social/indigo/lex/util"
"github.com/bluesky-social/indigo/models"
"github.com/bluesky-social/indigo/pds"
"github.com/bluesky-social/indigo/repo"
"github.com/bluesky-social/indigo/repomgr"
cbg "github.com/whyrusleeping/cbor-gen"
Expand Down Expand Up @@ -102,7 +101,7 @@ func NewServer(db *gorm.DB, cs *carstore.CarStore, repoUser RepoConfig, plcURL,
head, _ := s.repoman.GetRepoRoot(ctx, s.user.UserId)
if !head.Defined() {
log.Info("initializing labelmaker repo")
if err := s.repoman.InitNewActor(ctx, s.user.UserId, s.user.Handle, s.user.Did, "Label Maker", pds.UserActorDeclCid, pds.UserActorDeclType); err != nil {
if err := s.repoman.InitNewActor(ctx, s.user.UserId, s.user.Handle, s.user.Did, "Label Maker", "", ""); err != nil {
return nil, fmt.Errorf("creating labelmaker repo: %w", err)
}
} else {
Expand Down
Loading

0 comments on commit 4abad0f

Please sign in to comment.