From 1f29c72582589f6f106d28f09681190d177af6e5 Mon Sep 17 00:00:00 2001 From: mplorentz Date: Mon, 21 Oct 2024 14:14:36 -0400 Subject: [PATCH 1/2] Add mostr.pub to default relay list --- CHANGELOG.md | 1 + Nos/Models/CoreData/Relay+CoreDataClass.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 925407718..b0dc18916 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Release Notes +- Added relay.mostr.pub to the default relay list. [#1592](https://github.com/planetary-social/nos/issues/1592) - Fix two bugs that could result in muted users being unmuted. [#1674](https://github.com/planetary-social/nos/pull/1674) - Added a tip to Discover to prompt first-time users to go to their Feed. [#1601](https://github.com/planetary-social/nos/issues/1601) - Added a tip to the Feed to welcome first-time users and explain how the Feed works. [#1602](https://github.com/planetary-social/nos/issues/1602) diff --git a/Nos/Models/CoreData/Relay+CoreDataClass.swift b/Nos/Models/CoreData/Relay+CoreDataClass.swift index 2281547b6..39fef835e 100644 --- a/Nos/Models/CoreData/Relay+CoreDataClass.swift +++ b/Nos/Models/CoreData/Relay+CoreDataClass.swift @@ -16,6 +16,7 @@ public class Relay: NosManagedObject { "wss://relay.damus.io", "wss://purplepag.es", "wss://nos.lol", + "wss://relay.mostr.pub", ] } From 0e7cdc44cb8b7d3eba48f6bc5f727301703b8b58 Mon Sep 17 00:00:00 2001 From: mplorentz Date: Mon, 21 Oct 2024 15:34:10 -0400 Subject: [PATCH 2/2] Add code to hide AuthorCards on the Discover tab until their profile metadata has loaded --- CHANGELOG.md | 1 + Nos/Views/Discover/DiscoverContentsView.swift | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0dc18916..ad83bc323 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added new authors and categories to the Discover tab. [#1592](https://github.com/planetary-social/nos/issues/1592) ### Internal Changes +- Added code to hide users on the Discover tab with no profile metadata. [#1592](https://github.com/planetary-social/nos/issues/1592) - Migrate ObservableObject to @Observable where possible [#1458](https://github.com/planetary-social/nos/issues/1458) - Added the Create Account onboarding screen. Currently behind the “New Onboarding Flow” feature flag. [#1594](https://github.com/planetary-social/nos/issues/1594) - Increase build settings timeout in fastlane. [#1662](https://github.com/planetary-social/nos/pull/1662) diff --git a/Nos/Views/Discover/DiscoverContentsView.swift b/Nos/Views/Discover/DiscoverContentsView.swift index f45f84101..90a3e7278 100644 --- a/Nos/Views/Discover/DiscoverContentsView.swift +++ b/Nos/Views/Discover/DiscoverContentsView.swift @@ -84,12 +84,16 @@ struct DiscoverContentsView: View { ForEach(featuredAuthorIDs) { authorID in AuthorObservationView(authorID: authorID) { author in - AuthorCard(author: author) { - router.push(author) + VStack { + if author.lastUpdatedMetadata != nil { + AuthorCard(author: author) { + router.push(author) + } + .padding(.horizontal, 13) + .padding(.top, 5) + .readabilityPadding() + } } - .padding(.horizontal, 13) - .padding(.top, 5) - .readabilityPadding() .task { subscriptions[author.id] = await relayService.requestMetadata(