convert soft 404s to hard 404s in unfurler ssr
This commit is contained in:
@@ -54,6 +54,7 @@ export class ChannelPreviewComponent implements OnInit {
|
||||
}),
|
||||
catchError((err) => {
|
||||
this.error = err;
|
||||
this.seoService.logSoft404();
|
||||
this.openGraphService.fail('channel-map-' + this.shortId);
|
||||
this.openGraphService.fail('channel-data-' + this.shortId);
|
||||
return of(null);
|
||||
|
||||
@@ -38,6 +38,7 @@ export class ChannelComponent implements OnInit {
|
||||
}),
|
||||
catchError((err) => {
|
||||
this.error = err;
|
||||
this.seoService.logSoft404();
|
||||
return [{
|
||||
short_id: params.get('short_id')
|
||||
}];
|
||||
|
||||
@@ -50,6 +50,7 @@ export class GroupPreviewComponent implements OnInit {
|
||||
name: this.slug.replace(/-/gi, ' '),
|
||||
description: '',
|
||||
};
|
||||
this.seoService.logSoft404();
|
||||
this.openGraphService.fail('ln-group-map-' + this.slug);
|
||||
this.openGraphService.fail('ln-group-data-' + this.slug);
|
||||
return of(null);
|
||||
@@ -106,6 +107,7 @@ export class GroupPreviewComponent implements OnInit {
|
||||
};
|
||||
}),
|
||||
catchError(() => {
|
||||
this.seoService.logSoft404();
|
||||
this.openGraphService.fail('ln-group-map-' + this.slug);
|
||||
this.openGraphService.fail('ln-group-data-' + this.slug);
|
||||
return of({
|
||||
|
||||
@@ -81,6 +81,7 @@ export class NodePreviewComponent implements OnInit {
|
||||
}),
|
||||
catchError(err => {
|
||||
this.error = err;
|
||||
this.seoService.logSoft404();
|
||||
this.openGraphService.fail('node-map-' + this.publicKey);
|
||||
this.openGraphService.fail('node-data-' + this.publicKey);
|
||||
return [{
|
||||
|
||||
@@ -121,6 +121,7 @@ export class NodeComponent implements OnInit {
|
||||
}),
|
||||
catchError(err => {
|
||||
this.error = err;
|
||||
this.seoService.logSoft404();
|
||||
return [{
|
||||
alias: this.publicKey,
|
||||
public_key: this.publicKey,
|
||||
|
||||
@@ -85,6 +85,7 @@ export class NodesPerISPPreview implements OnInit {
|
||||
}),
|
||||
catchError(err => {
|
||||
this.error = err;
|
||||
this.seoService.logSoft404();
|
||||
this.openGraphService.fail('isp-map-' + this.id);
|
||||
this.openGraphService.fail('isp-data-' + this.id);
|
||||
return of({
|
||||
|
||||
Reference in New Issue
Block a user