diff --git a/src/FilterLists.Services/FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs b/src/FilterLists.Services/FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs index facec3c2f..05c221da2 100644 --- a/src/FilterLists.Services/FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs +++ b/src/FilterLists.Services/FilterList/MappingProfiles/ListSummaryDtoMappingProfile.cs @@ -22,13 +22,6 @@ public ListSummaryDtoMappingProfile() => .Select(s => s.CreatedDateUtc) .OrderByDescending(c => c) .FirstOrDefault() - : null))) - .ForMember(d => d.ViewUrl, - o => o.MapFrom(l => - l.Snapshots - .Where(s => s.WasSuccessful) - .OrderByDescending(s => s.CreatedDateUtc) - .FirstOrDefault() - .WaybackUrl ?? l.ViewUrl)); + : null))); } } \ No newline at end of file diff --git a/src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs b/src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs index dff5bef24..514649fe4 100644 --- a/src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs +++ b/src/FilterLists.Services/FilterList/Models/ListSummaryDto.cs @@ -12,6 +12,5 @@ public class ListSummaryDto public string Name { get; set; } public IEnumerable Tags { get; set; } public DateTime? UpdatedDate { get; set; } - public string ViewUrl { get; set; } } } \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index f4c224694..20610bb85 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -157,16 +157,6 @@ export class Home extends React.Component, IHomeState> { , style: { textAlign: "center" }, width: 105 - }, - { - Header: "Subscribe", - accessor: "viewUrl", - sortable: false, - Cell: (cell: any) => , - style: { textAlign: "center" }, - width: 105, - headerClassName: "d-none d-md-block", - className: "d-none d-md-block" } ]} SubComponent={(row: any) => { @@ -184,7 +174,6 @@ interface IListDto { languages: IListLanguageDto[]; tags: IListTagDto[]; updatedDate: string; - viewUrl: string; } interface IListLanguageDto { @@ -196,36 +185,4 @@ interface IListTagDto { name: string; colorHex: string; description: string; -} - -function SubscribeUrl(props: any) { - return props.url.indexOf("https://") === -1 - ? SubscribeUrlNotSecure() - : props.url.indexOf("web.archive.org") === -1 - ? SubscribeUrlPrimary() - : SubscribeUrlWayback(); - - function SubscribeUrlPrimary() { - return - Subscribe - ; - } - - function SubscribeUrlWayback() { - return - Subscribe - ; - } - - function SubscribeUrlNotSecure() { - return - Subscribe - ; - } -}; \ No newline at end of file +} \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx index 9f5a77dfc..286426a1a 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx @@ -176,7 +176,7 @@ function SubscribeUrl(props: any) { function SubscribeUrlPrimary() { return Subscribe ; @@ -184,7 +184,7 @@ function SubscribeUrl(props: any) { function SubscribeUrlWayback() { return Subscribe ; @@ -192,7 +192,7 @@ function SubscribeUrl(props: any) { function SubscribeUrlNotSecure() { return Subscribe ;