mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-07-28 18:42:41 +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 }
|
||||
}
|
||||
|
||||
fun profilePicture(): String {
|
||||
fun profilePicture(): String? {
|
||||
if (info.picture.isNullOrBlank()) info.picture = null
|
||||
return info.picture ?: "https://robohash.org/${pubkeyHex}.png"
|
||||
return info.picture
|
||||
}
|
||||
|
||||
fun follow(user: User, followedAt: Long) {
|
||||
|
Reference in New Issue
Block a user