Skip to content

Commit 6109dc5

Browse files
committed
When deleting my article, publish was missing
1 parent a8e6540 commit 6109dc5

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

Planet/Views/Sidebar/FollowingPlanetSidebarItem.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,16 @@ struct FollowingPlanetSidebarItem: View {
6767
NSPasteboard.general.clearContents()
6868
NSPasteboard.general.setString(planet.shareLink.absoluteString, forType: .string)
6969
} label: {
70-
Text("Copy URL")
70+
switch planet.planetType {
71+
case .planet:
72+
Text("Copy Planet IPNS")
73+
case .ens:
74+
Text("Copy ENS URL")
75+
case .dns:
76+
Text("Copy Feed URL")
77+
default:
78+
Text("Copy URL")
79+
}
7180
}
7281

7382
Button {

Planet/Views/Sidebar/MyPlanetSidebarItem.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ struct MyPlanetSidebarItem: View {
296296
if planet.articles.count < 1000 {
297297
Task.detached(priority: .userInitiated) {
298298
try await planet.savePublic()
299+
try await planet.publish()
299300
}
300301
} else {
301302
// if the planet has more than 1000 articles, we should ask user to perform a quick rebuild

Planet/versioning.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CURRENT_PROJECT_VERSION = 2496
1+
CURRENT_PROJECT_VERSION = 2497

0 commit comments

Comments
 (0)