annotate mod_measure_registration/mod_measure_registration.lua @ 4298:020dd0a59f1f

mod_muc_markers: Add option for @id rewriting, default off (may break some clients) XEP-0333 was updated to clarify that stanza-id should be used instead of the 'id' attribute when in a MUC. Some clients still use the id attribute, which is why we were rewriting it. Rewriting is bad because mod_muc advertises stable_id, indicating that Prosody does *not* rewrite ids. Recent versions of Conversations actually depend on this being true. All clients should migrate to using stanza-id for markers. See XEP-0333.
author Matthew Wild <mwild1@gmail.com>
date Mon, 14 Dec 2020 12:09:25 +0000
parents 32d9d155a9b9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3951
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
1 local count_registering = module:measure("user_registering", "rate");
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
2 local count_registered = module:measure("user_registered", "rate");
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
3
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
4 module:hook("user-registering", function ()
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
5 count_registering();
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
6 end);
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
7
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
8 module:hook("user-registered", function ()
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
9 count_registered();
32d9d155a9b9 mod_measure_registration: new module
Maxime “pep” Buquet <pep@bouah.net>
parents:
diff changeset
10 end);