mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-29 09:02:34 +02:00
Enabling local RoboHash for User Pictures
This commit is contained in:
@@ -72,9 +72,9 @@ class User(val pubkeyHex: String) {
|
|||||||
return info.displayName?.ifBlank { null } ?: info.display_name?.ifBlank { null }
|
return info.displayName?.ifBlank { null } ?: info.display_name?.ifBlank { null }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun profilePicture(): String {
|
fun profilePicture(): String? {
|
||||||
if (info.picture.isNullOrBlank()) info.picture = null
|
if (info.picture.isNullOrBlank()) info.picture = null
|
||||||
return info.picture ?: "https://robohash.org/${pubkeyHex}.png"
|
return info.picture
|
||||||
}
|
}
|
||||||
|
|
||||||
fun follow(user: User, followedAt: Long) {
|
fun follow(user: User, followedAt: Long) {
|
||||||
|
Reference in New Issue
Block a user