diff --git a/CHANGELOG.md b/CHANGELOG.md index 079a4e46d..43ea1750b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.91.0] - 2024-04-03 ### Added + 1. Create a CI/CD workflow for Firebase distribution. [#3238](https://github.com/numbersprotocol/capture-lite/pull/3238) ### Changed + 1. Upgrade macOS from version 12 to version 14 to resolve the SDK version issue. [#3239](https://github.com/numbersprotocol/capture-lite/pull/3239) -1, Sort network actions by `index` field to allow control of display order [#3237](https://github.com/numbersprotocol/capture-lite/pull/3237) +1. Sort network actions by `index` field to allow control of display order [#3237](https://github.com/numbersprotocol/capture-lite/pull/3237) ## [0.90.0] - 2024-03-08 diff --git a/src/app/features/home/details/details.page.ts b/src/app/features/home/details/details.page.ts index 51cb8c7cb..bbbef6d0a 100644 --- a/src/app/features/home/details/details.page.ts +++ b/src/app/features/home/details/details.page.ts @@ -23,7 +23,6 @@ import { tap, } from 'rxjs/operators'; import SwiperCore, { Swiper, Virtual } from 'swiper'; -import { ActionsService } from '../../../shared/actions/service/actions.service'; import { BlockingActionService } from '../../../shared/blocking-action/blocking-action.service'; import { CaptureAppWebCryptoApiSignatureProvider } from '../../../shared/collector/signature/capture-app-web-crypto-api-signature-provider/capture-app-web-crypto-api-signature-provider.service'; import { ConfirmAlert } from '../../../shared/confirm-alert/confirm-alert.service'; @@ -241,7 +240,6 @@ export class DetailsPage { private readonly alertController: AlertController, private readonly changeDetectorRef: ChangeDetectorRef, private readonly userGuideService: UserGuideService, - private readonly actionsService: ActionsService, private readonly networkService: NetworkService, private readonly diaBackendStoreService: DiaBackendStoreService, private readonly iframeService: IframeService, @@ -714,11 +712,6 @@ export class DetailsPage { activeDetailedCapture => activeDetailedCapture.diaBackendAsset$ ), isNonNullable(), - tap(diaBackendAsset => - this.actionsService - .generateSeoImageAndDescription$(diaBackendAsset) - .toPromise() - ), concatMap(diaBackendAsset => this.shareService.share(diaBackendAsset)), catchError((err: unknown) => this.errorService.toastError$(err)), untilDestroyed(this) diff --git a/src/app/shared/actions/service/actions.service.ts b/src/app/shared/actions/service/actions.service.ts index 725952f01..c5d932664 100644 --- a/src/app/shared/actions/service/actions.service.ts +++ b/src/app/shared/actions/service/actions.service.ts @@ -2,7 +2,6 @@ import { HttpClient, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { defer, forkJoin, of } from 'rxjs'; import { map } from 'rxjs/operators'; -import { DiaBackendAsset } from '../../dia-backend/asset/dia-backend-asset-repository.service'; import { BUBBLE_DB_URL } from '../../dia-backend/secret'; @Injectable({ @@ -39,16 +38,6 @@ export class ActionsService { send$(url: string, body: any) { return this.httpClient.post(url, body); } - - generateSeoImageAndDescription$(diaBackendAsset: DiaBackendAsset) { - return this.httpClient.post( - `https://authmedia.net/api/1.1/obj/nftprofile`, - { - asset_url: diaBackendAsset.asset_file, - Description: diaBackendAsset.cid, - } - ); - } } export interface Action { diff --git a/src/app/utils/url.ts b/src/app/utils/url.ts index 197d148d8..b91d80ac8 100644 --- a/src/app/utils/url.ts +++ b/src/app/utils/url.ts @@ -6,13 +6,6 @@ export function toDataUrl(base64: string, mimeType: MimeType | string) { return `data:${mimeType};base64,${base64}`; } -export function getAssetProfileUrl(id: string, token?: string) { - if (token) { - return `https://authmedia.net/asset-profile?cid=${id}&token=${token}`; - } - return `https://authmedia.net/asset-profile?cid=${id}`; -} - export function getAssetProfileForNSE(id: string, token?: string) { if (token) { return `https://verify.numbersprotocol.io/asset-profile?nid=${id}&tmp_token=${token}`;