Add telegra.ph aliases

This commit is contained in:
Ilya Laktyushin
2020-07-11 11:00:53 +03:00
parent 99f166b698
commit b1074abfe2

View File

@@ -448,7 +448,7 @@ public func resolveUrlImpl(account: Account, url: String) -> Signal<ResolvedUrl,
}
}
}
let baseTelegraPhPaths = ["telegra.ph/", "t.me/iv?"]
let baseTelegraPhPaths = ["telegra.ph/", "te.legra.ph/", "graph.org/", "t.me/iv?"]
for basePath in baseTelegraPhPaths {
for scheme in schemes {
let basePrefix = scheme + basePath