mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 01:53:35 +02:00
Migrating pictures and banners to https
This commit is contained in:
@@ -128,6 +128,14 @@ class User(val pubkey: ByteArray) {
|
|||||||
info = newUserInfo
|
info = newUserInfo
|
||||||
updatedMetadataAt = updateAt
|
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()
|
invalidateData()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user