Mercurial > prosody-modules
changeset 3196:01503000d2f1
mod_pastebin: Make first line and URL more clearly separated
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 31 Jul 2018 18:29:08 +0200 (2018-07-31) |
parents | 66b3085ecc49 |
children | f6a14cdc531b |
files | mod_pastebin/mod_pastebin.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_pastebin/mod_pastebin.lua Thu Jul 26 10:35:30 2018 +0100 +++ b/mod_pastebin/mod_pastebin.lua Tue Jul 31 18:29:08 2018 +0200 @@ -132,7 +132,7 @@ local summary = (body:sub(1, max_summary_length):gsub(utf8_pattern, drop_invalid_utf8) or ""):match("[^\n]+") or ""; summary = summary:match("^%s*(.-)%s*$"); local summary_prefixed = summary:match("[,:]$"); - replace_tag(stanza, st.stanza("body"):text(summary .. " " .. url)); + replace_tag(stanza, st.stanza("body"):text(summary .. "\n" .. url)); stanza:add_child(st.stanza("query", { xmlns = "jabber:iq:oob" }):tag("url"):text(url));