Merge pull request #3273 from omnivore-app/remove-invalid-url
remove invalid-url error from subscribing feed
This commit is contained in:
@ -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'
|
||||
}
|
||||
|
||||
@ -2190,7 +2190,6 @@ enum SubscribeErrorCode {
|
||||
ALREADY_SUBSCRIBED
|
||||
BAD_REQUEST
|
||||
EXCEEDED_MAX_SUBSCRIPTIONS
|
||||
INVALID_URL
|
||||
NOT_FOUND
|
||||
UNAUTHORIZED
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -1737,7 +1737,6 @@ const schema = gql`
|
||||
NOT_FOUND
|
||||
ALREADY_SUBSCRIBED
|
||||
EXCEEDED_MAX_SUBSCRIPTIONS
|
||||
INVALID_URL
|
||||
}
|
||||
|
||||
union AddPopularReadResult = AddPopularReadSuccess | AddPopularReadError
|
||||
|
||||
Reference in New Issue
Block a user