Changeset

6233:1c16bb49f6f6

mod_push2: rename chat to filter
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Fri, 11 Apr 2025 20:08:56 -0500
parents 6231:6b3deaa523ad
children 6234:d68e640e76ad
files mod_push2/mod_push2.lua mod_push2/push2.md
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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 @@
     <client>https://push.example.com/adlfkjadafdasf</client>
     <match profile="urn:xmpp:push2:match:archived-with-body">
         <grace>144</grace>
-        <chat jid="somemuc@conference.example.com">
+        <filter jid="somemuc@conference.example.com">
             <mention/>
-        </chat>
+        </filter>
         <send xmlns="urn:xmpp:push2:send:notify-only:0"/>
     </match>
 </enable>
@@ -30,7 +30,7 @@
 
 The `<match/>` and `<send/>` elements define what profiles to use for matching stanzas and sending notifications. These are described later in this document.
 
-The optional `<chat/>` child of `<match/>` allows extra filtering of pushes for only specific chats. No specified filters means muted, do not push. `<mention/>` means push on mentions, `<reply/>` means push on replies.
+The optional `<filter/>` child of `<match/>` allows extra filtering of pushes for only specific chats. No specified filters means muted, do not push. `<mention/>` means push on mentions, `<reply/>` means push on replies.
 
 The optional `<grace/>` child of `<match/>` 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.