Mercurial Hosting > chat
annotate src/active.js.luan @ 48:7628fd0e3560
minor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 28 Feb 2025 19:59:27 -0700 |
| parents | 7ea33179592a |
| children | 624654817f99 |
| rev | line source |
|---|---|
| 40 | 1 local Luan = require "luan:Luan.luan" |
| 2 local error = Luan.error | |
| 3 local User = require "site:/lib/User.luan" | |
| 4 local current_user = User.current or error() | |
| 5 local Notify = require "site:/lib/Notify.luan" | |
| 6 | |
| 7 | |
| 8 return function() | |
| 9 local user = current_user() or error() | |
| 10 Notify.remove(user) | |
| 11 end |
