mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Migrating pictures and banners to https
This commit is contained in:
parent
5ad39d7163
commit
6f9a69b9d4
@ -128,6 +128,14 @@ class User(val pubkey: ByteArray) {
|
||||
info = newUserInfo
|
||||
updatedMetadataAt = updateAt
|
||||
|
||||
if (info.picture?.startsWith( "http://") == true) {
|
||||
info.picture = info.picture?.replaceFirst("http://", "https://")
|
||||
}
|
||||
|
||||
if (info.banner?.startsWith( "http://") == true) {
|
||||
info.banner = info.banner?.replaceFirst("http://", "https://")
|
||||
}
|
||||
|
||||
invalidateData()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user