Mercurial > prosody-modules
comparison mod_nodeinfo2/mod_nodeinfo2.lua @ 4595:bac3dae031ee
Add note of incompatibility with trunk since 5f15ab7c6ae5
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 19 Jun 2021 12:55:14 +0200 |
parents | aec772bbd558 |
children |
comparison
equal
deleted
inserted
replaced
4594:1da63fe35ef3 | 4595:bac3dae031ee |
---|---|
2 local array = require "util.array"; | 2 local array = require "util.array"; |
3 local add_task = require "util.timer".add_task; | 3 local add_task = require "util.timer".add_task; |
4 local get_stats = require "core.statsmanager".get_stats; | 4 local get_stats = require "core.statsmanager".get_stats; |
5 local list_users = require "core.usermanager".users; | 5 local list_users = require "core.usermanager".users; |
6 local os_time = os.time; | 6 local os_time = os.time; |
7 | |
8 assert(get_stats, "not compatible with trunk based on openmetrics"); | |
7 | 9 |
8 module:depends("http"); | 10 module:depends("http"); |
9 | 11 |
10 local expose_users = module:get_option_boolean("nodeinfo2_expose_users", true); | 12 local expose_users = module:get_option_boolean("nodeinfo2_expose_users", true); |
11 if expose_users then | 13 if expose_users then |