This commit is contained in:
2024-08-11 21:17:02 +08:00
parent 19527f17c3
commit 322a4320c7
9 changed files with 160 additions and 31 deletions

View File

@@ -43,9 +43,10 @@ data class Moment(
val time: String
) {
fun toMomentItem(): MomentEntity {
val avatar = ApiClient.BASE_SERVER + user.avatar + "?token=${AppStore.token}"
return MomentEntity(
id = id.toInt(),
avatar = ApiClient.BASE_SERVER + user.avatar,
avatar = ApiClient.BASE_SERVER + user.avatar + "?token=${AppStore.token}",
nickname = user.nickName,
location = "Worldwide",
time = time,