Mercurial Hosting > chat
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/active.js.luan Thu Feb 27 16:44:20 2025 -0700 @@ -0,0 +1,11 @@ +local Luan = require "luan:Luan.luan" +local error = Luan.error +local User = require "site:/lib/User.luan" +local current_user = User.current or error() +local Notify = require "site:/lib/Notify.luan" + + +return function() + local user = current_user() or error() + Notify.remove(user) +end