Can Comment a Comment

This commit is contained in:
2019-10-15 15:46:19 +02:00
parent 499fbd6dcf
commit 8cb5c35296
4 changed files with 77 additions and 13 deletions

View File

@@ -62,11 +62,10 @@ abstract class Comment <T : UuidEntity>(override var requester: Requester) : Rep
}
fun comment(comment: CommentEntity<T>) {
val reference = comment.target::class.simpleName!!.toLowerCase()
requester
.getFunction("comment")
.sendQuery(
"reference" to reference,
"reference" to comment.targetReference,
"resource" to comment
)
}