# HG changeset patch # User Stephen Paul Weber # Date 1744420136 18000 # Node ID 1c16bb49f6f661b9f402b083e82780691ea89316 # Parent 6b3deaa523ad314954f30f3b7a186ba249c8f282 mod_push2: rename chat to filter diff -r 6b3deaa523ad -r 1c16bb49f6f6 mod_push2/mod_push2.lua --- a/mod_push2/mod_push2.lua Wed Apr 09 19:05:42 2025 +0200 +++ b/mod_push2/mod_push2.lua Fri Apr 11 20:08:56 2025 -0500 @@ -33,7 +33,7 @@ local function parse_match(matchel) local match = { match = matchel.attr.profile, chats = {} } - for chatel in matchel:childtags("chat") do + for chatel in matchel:childtags("filter") do local chat = {} if chatel:get_child("mention") then chat.mention = true diff -r 6b3deaa523ad -r 1c16bb49f6f6 mod_push2/push2.md --- a/mod_push2/push2.md Wed Apr 09 19:05:42 2025 +0200 +++ b/mod_push2/push2.md Fri Apr 11 20:08:56 2025 -0500 @@ -16,9 +16,9 @@ https://push.example.com/adlfkjadafdasf 144 - + - + @@ -30,7 +30,7 @@ The `` and `` elements define what profiles to use for matching stanzas and sending notifications. These are described later in this document. -The optional `` child of `` allows extra filtering of pushes for only specific chats. No specified filters means muted, do not push. `` means push on mentions, `` means push on replies. +The optional `` child of `` allows extra filtering of pushes for only specific chats. No specified filters means muted, do not push. `` means push on mentions, `` means push on replies. The optional `` child of `` allows specifying a "grace period" in seconds where activity on another session by the same user (such as sending a message) will temporarily pause sending push notifications.