Bots cannot like ublogs.

For now they can still post blogs, which could be useful to post articles (like maia) on their specifities and/or development.
pull/9885/head
kraktus 2021-09-25 11:20:03 +02:00
parent 1e9d0eaa4e
commit e816570437
1 changed files with 5 additions and 3 deletions

View File

@ -156,9 +156,11 @@ final class Ublog(env: Env) extends LilaController(env) {
}
def like(id: String, v: Boolean) = Auth { implicit ctx => me =>
NotForKids {
env.ublog.rank.like(UblogPost.Id(id), me, v) map { likes =>
Ok(likes.value)
NoBot {
NotForKids {
env.ublog.rank.like(UblogPost.Id(id), me, v) map { likes =>
Ok(likes.value)
}
}
}
}