mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont display our GCS storage domain for PDFs
This commit is contained in:
parent
f902f74cd2
commit
6002074b74
1 changed files with 7 additions and 1 deletions
|
|
@ -63,7 +63,13 @@ public extension LinkedItem {
|
|||
}
|
||||
|
||||
var publisherDisplayName: String? {
|
||||
siteName ?? URL(string: publisherURLString ?? pageURLString ?? "")?.host
|
||||
if let siteName = siteName {
|
||||
return siteName
|
||||
}
|
||||
if let host = URL(string: publisherURLString ?? pageURLString ?? "")?.host, host != "storage.googleapis.com" {
|
||||
return host
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var imageURL: URL? {
|
||||
|
|
|
|||
Loading…
Reference in a new issue