Skip to content

Commit

Permalink
Merge pull request #1285 from planetary-social/feature/discover-addit…
Browse files Browse the repository at this point in the history
…ional

Add additional authors to Discover tab
  • Loading branch information
joshuatbrown authored Jul 9, 2024
2 parents baed2aa + fd89861 commit c9a9f01
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions Nos/Views/Discover/FeaturedAuthor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,26 @@ struct FeaturedAuthor {

extension FeaturedAuthor {
/// All featured authors that should appear on the Discover tab.
static let all = cohort4 + cohort3 + cohort2 + cohort1
static let all = cohort4 + cohort3 + cohort2 + cohort1 + additionalAuthors
}

extension FeaturedAuthor {
/// Additional authors to feature on the Discover tab who aren't part of a cohort.
static let additionalAuthors = [
FeaturedAuthor(
name: "Rabble",
npub: "npub1wmr34t36fy03m8hvgl96zl3znndyzyaqhwmwdtshwmtkg03fetaqhjg240",
categories: [.activists, .tech]
),
FeaturedAuthor(
name: "Edward Snowden",
npub: "npub1sn0wdenkukak0d9dfczzeacvhkrgz92ak56egt7vdgzn8pv2wfqqhrjdv9",
categories: [.activists, .tech]
),
]
}

extension FeaturedAuthor {
/// The first cohort of authors to display on the Discover tab.
static let cohort1 = [
FeaturedAuthor(
name: "Miguel Almodo",
Expand Down Expand Up @@ -207,5 +222,10 @@ extension FeaturedAuthor {
npub: "npub1s8c5mk68qn0erxrx5waqz7xxk39x5xx2367879eqcv270tqs4tvsf5ewgf",
categories: [.activists]
),
FeaturedAuthor(
name: "Protest.net",
npub: "npub1z3thwmwasmp787zvk2aaq5qdjtjdkl637p52nph4flv668973c8qaz2du7",
categories: [.activists]
),
]
}

0 comments on commit c9a9f01

Please sign in to comment.