Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ internal data class Comment(
val analysis_extra: String? = null,
@SerialName("total_number")
val totalNumber: Long? = null,
@SerialName("associate_status_id")
val associateStatusID: String? = null,
) {
val commentList: List<Comment>?
get() =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,16 @@ private fun replaceMentionAndHashtag(
if (node is Element) {
val href = node.attribute("href")?.value
if (href != null) {
if (href.startsWith("/n/")) {
if (href.all { it.isDigit() }) {
val statusId = href
node.attributes().put(
"href",
AppDeepLink.VVO.StatusDetail(
accountKey = accountKey,
statusKey = MicroBlogKey(statusId, accountKey.host),
),
)
} else if (href.startsWith("/n/")) {
val id = href.removePrefix("/n/")
if (id.isNotEmpty()) {
node.attributes().put(
Expand Down