User avatar
pathetic piss kitten @kitten@elizabeth.cat
1mo
fun Post.unwrapPosts(): List<Post> {
	val posts = mutableListOf(this)

	if (quote != null) posts.addAll(quote.unwrapPosts())
	if (boostedPost != null) posts.addAll(boostedPost.unwrapPosts())

	return posts
}


this is going to throw CallStackSizeExceeded at some point