mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-19 18:51:25 +02:00
Migrating pictures and banners to https
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user