更新UI
This commit is contained in:
@@ -44,13 +44,12 @@ data class Moment(
|
||||
val time: String
|
||||
) {
|
||||
fun toMomentItem(): MomentEntity {
|
||||
val avatar = "${ApiClient.BASE_SERVER}${user.avatar}"
|
||||
return MomentEntity(
|
||||
id = id.toInt(),
|
||||
avatar = "${ApiClient.BASE_SERVER}${user.avatar}",
|
||||
nickname = user.nickName,
|
||||
location = "Worldwide",
|
||||
time = time,
|
||||
time = ApiClient.dateFromApiString(time),
|
||||
followStatus = false,
|
||||
momentTextContent = textContent,
|
||||
momentPicture = R.drawable.default_moment_img,
|
||||
|
||||
Reference in New Issue
Block a user