We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 474c08f commit 0a15cbcCopy full SHA for 0a15cbc
2 files changed
src/app/features/preprints/services/preprints.service.ts
@@ -100,7 +100,7 @@ export class PreprintsService {
100
.pipe(
101
map((response) => PreprintsMapper.fromPreprintWithEmbedsJsonApi(response)),
102
catchError((error) => {
103
- if (error.status === 410) {
+ if (error.error?.errors?.[0]?.meta?.flagged_content) {
104
this.router.navigate(['/spam-content']);
105
}
106
return throwError(() => error);
src/app/shared/services/resource.service.ts
@@ -63,7 +63,7 @@ export class ResourceGuidService {
63
),
64
finalize(() => this.loaderService.hide()),
65
66
67
68
69
0 commit comments