Mercurial Hosting > chat
comparison src/active.js.luan @ 40:7ea33179592a
email notification
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 27 Feb 2025 16:44:20 -0700 |
| parents | |
| children | 624654817f99 |
comparison
equal
deleted
inserted
replaced
| 39:471b13e6ce2c | 40:7ea33179592a |
|---|---|
| 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 |
