|
|
|
@ -85,7 +85,7 @@ class AccountViewModel @Inject constructor( |
|
|
|
mastodonApi.relationships(listOf(accountId)) |
|
|
|
mastodonApi.relationships(listOf(accountId)) |
|
|
|
.fold( |
|
|
|
.fold( |
|
|
|
{ relationships -> |
|
|
|
{ relationships -> |
|
|
|
relationshipData.postValue(Success(relationships[0])) |
|
|
|
relationshipData.postValue(if (relationships.isNotEmpty()) Success(relationships[0]) else Error()) |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ t -> |
|
|
|
{ t -> |
|
|
|
Log.w(TAG, "failed obtaining relationships", t) |
|
|
|
Log.w(TAG, "failed obtaining relationships", t) |
|
|
|
|