mod_pubsub_summary/mod_pubsub_summary.lua
changeset 4441 09657f758f53
parent 4440 07529dba102d
child 4442 2bb11055e4bb
equal deleted inserted replaced
4440:07529dba102d 4441:09657f758f53
    29 				amp = "&";
    29 				amp = "&";
    30 				nbsp = utf8 and utf8.char(0xa0) or " ";
    30 				nbsp = utf8 and utf8.char(0xa0) or " ";
    31 			});
    31 			});
    32 	end
    32 	end
    33 	local summary;
    33 	local summary;
    34 	if title and content then
    34 	if title and content and content:sub(1, #title) ~= title then
    35 		summary = title .. "\n\n" .. content;
    35 		summary = title .. "\n\n" .. content;
    36 	elseif title or content then
    36 	elseif title or content then
    37 		summary = content or title;
    37 		summary = content or title;
    38 	end
    38 	end
    39 	for link in payload:childtags("link") do
    39 	for link in payload:childtags("link") do