mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix slug in local page creation
This commit is contained in:
parent
fb1027dc38
commit
717edf7809
1 changed files with 2 additions and 2 deletions
|
|
@ -138,8 +138,8 @@ public final class DataService: ObservableObject {
|
|||
linkedItem.author = nil
|
||||
linkedItem.publishDate = nil
|
||||
|
||||
if let currentViewer = self.currentViewer {
|
||||
linkedItem.slug = "\(currentViewer)/\(requestId)"
|
||||
if let currentViewer = self.currentViewer, let username = currentViewer.username {
|
||||
linkedItem.slug = "\(username)/\(requestId)"
|
||||
} else {
|
||||
// Technically this is invalid, but I don't think slug is used at all locally anymore
|
||||
linkedItem.slug = requestId
|
||||
|
|
|
|||
Loading…
Reference in a new issue