Skip to content

Commit

Permalink
Merge pull request #1676 from planetary-social/add-mostr.pub-to-relay…
Browse files Browse the repository at this point in the history
…-list

Fix blank author cards on the Discover tab
  • Loading branch information
mplorentz authored Oct 21, 2024
2 parents 7c52930 + f828596 commit 6edb778
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -21,6 +22,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)
Expand Down
1 change: 1 addition & 0 deletions Nos/Models/CoreData/Relay+CoreDataClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Relay: NosManagedObject {
"wss://relay.damus.io",
"wss://purplepag.es",
"wss://nos.lol",
"wss://relay.mostr.pub",
]
}

Expand Down
14 changes: 9 additions & 5 deletions Nos/Views/Discover/DiscoverContentsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6edb778

Please sign in to comment.