+ protected fun addPost(post: Post, id: String? = null) {
+ posts[id ?: post.id] = post
+ }
+
+ protected fun addLikes(post: Post, vararg sones: Sone) {
+ postLikes[post] = setOf(*sones)
+ }
+
+ protected fun addLikes(reply: PostReply, vararg sones: Sone) {
+ replyLikes[reply] = setOf(*sones)