diff options
Diffstat (limited to 'backend/notes/app.bsky.feed.post.go')
| -rw-r--r-- | backend/notes/app.bsky.feed.post.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/backend/notes/app.bsky.feed.post.go b/backend/notes/app.bsky.feed.post.go index 1c11733..c4311e7 100644 --- a/backend/notes/app.bsky.feed.post.go +++ b/backend/notes/app.bsky.feed.post.go @@ -3,7 +3,6 @@ package notes import ( "fmt" "llostre/backend/general" - "strings" "time" ) @@ -47,8 +46,7 @@ func AppBskyFeedPostFromRecord(record AppBskyFeedPostRecord, profile *general.Pr replyTo = &record.Value.Reply.Parent.URI } - parts := strings.Split(record.URI, "/") // at://DID/collection/rkey - did := parts[2] + did, _, _, err := general.ParseURI(record.URI) var facets []Facet for _, f := range record.Value.Facets { |
