# HG changeset patch # User Kim Alvefur # Date 1527200326 -7200 # Node ID 26977c4760f527c330be60e973650feb2b77f691 # Parent be9e213d089b952fbd11b78ffc82a716c6ae7092 mod_pastebin: Restore URL in final body text diff -r be9e213d089b -r 26977c4760f5 mod_pastebin/mod_pastebin.lua --- a/mod_pastebin/mod_pastebin.lua Fri May 25 00:12:12 2018 +0200 +++ b/mod_pastebin/mod_pastebin.lua Fri May 25 00:18:46 2018 +0200 @@ -127,7 +127,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)); + replace_tag(stanza, st.stanza("body"):text(summary .. " " .. url)); stanza:add_child(st.stanza("query", { xmlns = "jabber:iq:oob" }):tag("url"):text(url));