Skip to content

Commit 460a086

Browse files
authored
Merge pull request #2000 from numbersprotocol/feature-user-nftse-not-authmedia
Feature use NSE instead of Authmedia
2 parents e78d5ed + 0c62a16 commit 460a086

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/app/features/home/details/details.page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
switchTap,
4242
VOID$,
4343
} from '../../../utils/rx-operators/rx-operators';
44-
import { getAssetProfileUrl } from '../../../utils/url';
44+
import { getAssetProfileForNSE } from '../../../utils/url';
4545
import {
4646
DetailedCapture,
4747
InformationSessionService,
@@ -566,7 +566,7 @@ export class DetailsPage {
566566
concatMap(([detailedCapture, tmpShareToken]) =>
567567
defer(() =>
568568
Browser.open({
569-
url: getAssetProfileUrl(
569+
url: getAssetProfileForNSE(
570570
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
571571
detailedCapture.id!,
572572
tmpShareToken

src/app/shared/share/share.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Share } from '@capacitor/share';
33
import { TranslocoService } from '@ngneat/transloco';
44
import { catchError } from 'rxjs/operators';
55
import { urlToDownloadApp } from '../../utils/constants';
6-
import { getAssetProfileUrl } from '../../utils/url';
6+
import { getAssetProfileForNSE } from '../../utils/url';
77
import {
88
DiaBackendAsset,
99
DiaBackendAssetRepository,
@@ -36,7 +36,7 @@ export class ShareService {
3636
.updateCapture$(asset.id, formData)
3737
.pipe(catchError((err: unknown) => this.errorService.toastError$(err)))
3838
.toPromise();
39-
return getAssetProfileUrl(asset.id);
39+
return getAssetProfileForNSE(asset.id);
4040
}
4141

4242
async shareReferralCode(referralCode: string) {

src/app/utils/url.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ export function getAssetProfileUrl(id: string, token?: string) {
1212
return `https://authmedia.net/asset-profile?cid=${id}`;
1313
}
1414

15+
export function getAssetProfileForNSE(id: string, token?: string) {
16+
if (token) {
17+
return `https://nftsearch.site/asset-profile?cid=${id}&tmp_token=${token}`;
18+
}
19+
return `https://nftsearch.site/asset-profile?cid=${id}`;
20+
}
21+
1522
export function getAppDownloadLink(isPlatform: (platformName: any) => boolean) {
1623
if (isPlatform('ios'))
1724
return 'https://apps.apple.com/en/app/capture-app/id1536388009';

0 commit comments

Comments
 (0)