Skip to content

Commit d56ba1b

Browse files
authored
Do not block redirected/soft-removed packages in versions feed. (#8739)
1 parent 56e05ed commit d56ba1b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/lib/frontend/handlers/atom_feed.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import 'package:shelf/shelf.dart' as shelf;
1212
import '../../admin/actions/actions.dart';
1313
import '../../package/backend.dart';
1414
import '../../package/models.dart';
15-
import '../../package/overrides.dart';
1615
import '../../shared/configuration.dart';
1716
import '../../shared/redis_cache.dart';
1817
import '../../shared/urls.dart' as urls;
@@ -60,8 +59,7 @@ Future<String> buildAllPackagesAtomFeedContent() async {
6059

6160
/// Builds the content of the `/packages/<package>/feed.atom` endpoint.
6261
Future<String> buildPackageAtomFeedContent(String package) async {
63-
if (isSoftRemoved(package) ||
64-
!await packageBackend.isPackageVisible(package)) {
62+
if (!await packageBackend.isPackageVisible(package)) {
6563
throw NotFoundException.resource(package);
6664
}
6765
final versions = await packageBackend

0 commit comments

Comments
 (0)