mirror of https://github.com/usbharu/Hideout.git
fix: 正常に永続化されるように
This commit is contained in:
parent
3c604abe37
commit
c88ff0b3fe
|
@ -44,6 +44,7 @@ class PostContent {
|
|||
|
||||
other as PostContent
|
||||
|
||||
if (wasTruncated != other.wasTruncated) return false
|
||||
if (text != other.text) return false
|
||||
if (content != other.content) return false
|
||||
if (emojiIds != other.emojiIds) return false
|
||||
|
@ -52,7 +53,8 @@ class PostContent {
|
|||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
var result = text.hashCode()
|
||||
var result = wasTruncated.hashCode()
|
||||
result = 31 * result + text.hashCode()
|
||||
result = 31 * result + content.hashCode()
|
||||
result = 31 * result + emojiIds.hashCode()
|
||||
return result
|
||||
|
@ -62,7 +64,10 @@ class PostContent {
|
|||
return "PostContent(" +
|
||||
"text='$text', " +
|
||||
"content='$content', " +
|
||||
"emojiIds=$emojiIds" +
|
||||
"emojiIds=$emojiIds, " +
|
||||
"wasTruncated=$wasTruncated" +
|
||||
")"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -75,6 +75,7 @@ class ExposedPostRepository(
|
|||
it[deleted] = post.deleted
|
||||
it[hide] = post.hide
|
||||
it[moveTo] = post.moveTo?.id
|
||||
it[wasTruncated] = post.wasTruncated
|
||||
}
|
||||
PostsMedia.deleteWhere {
|
||||
postId eq post.id.id
|
||||
|
|
Loading…
Reference in New Issue