Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/appview-v2' into appview-v2-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Jan 9, 2024
2 parents 8755bc1 + 807b38a commit de9090b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions services/bsky/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ const getEnv = () => ({
feedPublisherDid: process.env.BSKY_FEED_PUBLISHER_DID || undefined,
})

const maybeParseInt = (str) => {
if (!str) return
const int = parseInt(str, 10)
if (isNaN(int)) return
return int
}

const maintainXrpcResource = (span, req) => {
// Show actual xrpc method as resource rather than the route pattern
if (span && req.originalUrl?.startsWith('/xrpc/')) {
Expand Down

0 comments on commit de9090b

Please sign in to comment.