Show patron support activity for lifetime

pull/9011/head
Benedikt Werner 2021-05-23 20:49:10 +02:00
parent 7cb4bfde79
commit c64e24cc38
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ final class PlanApi(
}
def setLifetime(user: User): Funit =
if (user.plan.isEmpty) Bus.publish(lila.hub.actorApi.plan.MonthInc(user.id, 0), "plan")
userRepo.setPlan(
user,
user.plan.enable