Skip to content

Commit

Permalink
Merge pull request #3273 from omnivore-app/remove-invalid-url
Browse files Browse the repository at this point in the history
remove invalid-url error from subscribing feed
  • Loading branch information
sywhb authored Dec 22, 2023
2 parents a0f9366 + c939735 commit 0dc3d61
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion packages/api/src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2790,7 +2790,6 @@ export enum SubscribeErrorCode {
AlreadySubscribed = 'ALREADY_SUBSCRIBED',
BadRequest = 'BAD_REQUEST',
ExceededMaxSubscriptions = 'EXCEEDED_MAX_SUBSCRIPTIONS',
InvalidUrl = 'INVALID_URL',
NotFound = 'NOT_FOUND',
Unauthorized = 'UNAUTHORIZED'
}
Expand Down
1 change: 0 additions & 1 deletion packages/api/src/generated/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2190,7 +2190,6 @@ enum SubscribeErrorCode {
ALREADY_SUBSCRIBED
BAD_REQUEST
EXCEEDED_MAX_SUBSCRIPTIONS
INVALID_URL
NOT_FOUND
UNAUTHORIZED
}
Expand Down
10 changes: 0 additions & 10 deletions packages/api/src/resolvers/subscriptions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,6 @@ export const subscribeResolver = authorized<
}
}

if (feedUrl !== input.url) {
log.info('feed url is different from user provided url', {
feedUrl,
inputUrl: input.url,
})
return {
errorCodes: [SubscribeErrorCode.InvalidUrl],
}
}

// create new rss subscription
const MAX_RSS_SUBSCRIPTIONS = env.subscription.feed.max

Expand Down
1 change: 0 additions & 1 deletion packages/api/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,6 @@ const schema = gql`
NOT_FOUND
ALREADY_SUBSCRIBED
EXCEEDED_MAX_SUBSCRIPTIONS
INVALID_URL
}
union AddPopularReadResult = AddPopularReadSuccess | AddPopularReadError
Expand Down

1 comment on commit 0dc3d61

@vercel
Copy link

@vercel vercel bot commented on 0dc3d61 Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.