Migrating pictures and banners to https

This commit is contained in:
Vitor Pamplona 2023-01-27 22:03:54 -03:00
parent 5ad39d7163
commit 6f9a69b9d4

View File

@ -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()
}