Software /
code /
prosody
File
net/httpserver.lua @ 13601:0338a5569178
mod_pubsub: Limit node listing based on new ACL-aware metadata method
Ensures that nodes that one does not have metadata access to are hidden
from view.
This follows from the new ACL-aware method added in 3b357ab6b6eb.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 07 Jan 2025 22:57:39 +0100 |
parent | 12974:ba409c67353b |
line wrap: on
line source
-- COMPAT w/pre-0.9 local log = require "prosody.util.logger".init("net.httpserver"); local traceback = debug.traceback; local _ENV = nil; -- luacheck: std none local function fail() log("error", "Attempt to use legacy HTTP API. For more info see https://prosody.im/doc/developers/legacy_http"); log("error", "Legacy HTTP API usage, %s", traceback("", 2)); end return { new = fail; new_from_config = fail; set_default_handler = fail; };