Merge branch 'main' of https://github.com/JohnXLivingston/peertube-plugin-livechat
This commit is contained in:
commit
904fc79123
@ -32,7 +32,7 @@ local function create_terms_message(room, type, terms)
|
|||||||
id = id.medium()
|
id = id.medium()
|
||||||
}, terms)
|
}, terms)
|
||||||
:tag('x-livechat-terms', { type = type }):up() -- adding a custom tag to specify that it is a "terms" message, so that frontend can display it with a special template.
|
:tag('x-livechat-terms', { type = type }):up() -- adding a custom tag to specify that it is a "terms" message, so that frontend can display it with a special template.
|
||||||
:tag("delay", { xmlns = "urn:xmpp:delay", from = host, stamp = datetime.datetime() }):up(); -- adding a delay to trick the moderation bot (see below)
|
:tag("delay", { xmlns = "urn:xmpp:delay", from = from, stamp = datetime.datetime() }):up(); -- adding a delay to trick the moderation bot (see below)
|
||||||
|
|
||||||
-- concerning the delay tag:
|
-- concerning the delay tag:
|
||||||
-- We are sending message to rooms from non-existant occupants.
|
-- We are sending message to rooms from non-existant occupants.
|
||||||
|
Loading…
Reference in New Issue
Block a user