Skip to content

Commit

Permalink
fix: post detail opening (both top level and reply) (#801)
Browse files Browse the repository at this point in the history
* fix regex for embedded image detection

* update entry detail (api, bl, ui)
  • Loading branch information
AkesiSeli authored Feb 9, 2025
1 parent 461dde3 commit 0b6f03d
Show file tree
Hide file tree
Showing 4 changed files with 524 additions and 457 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.livefast.eattrash.raccoonforfriendica.core.htmlparse.parseHtml
import com.livefast.eattrash.raccoonforfriendica.domain.content.data.EmojiModel

// lazy wildcard matcher after element name, optional closing "/"
internal val IMAGE_REGEX = Regex("(img.*?/?)|(<a href=\".*?\"><img.*?/?></a>)")
internal val IMAGE_REGEX = Regex("(<img.*?/?>)|(<a href=\".*?\"><img.*?/?></a>)")

@Composable
fun ContentBody(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ interface EntryDetailMviModel :
val refreshing: Boolean = false,
val initial: Boolean = true,
val loading: Boolean = false,
val initialIndex: Int = 0,
val mainEntry: TimelineEntryModel? = null,
val entries: List<List<TimelineEntryModel>> = emptyList(),
val currentIndex: Int = 0,
val currentIndex: Int = -1,
val blurNsfw: Boolean = true,
val autoloadImages: Boolean = true,
val hideNavigationBarWhileScrolling: Boolean = true,
Expand Down
Loading

0 comments on commit 0b6f03d

Please sign in to comment.