Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 9043:9d77b6588bdf

mod_pubsub: Remove unneeded stanza API call
author Kim Alvefur <zash@zash.se>
date Sat, 14 Jul 2018 21:26:13 +0200
parent 9039:0124e5ec1556
child 9044:18cd5102253c
comparison
equal deleted inserted replaced
9042:734ba7080b35 9043:9d77b6588bdf
54 local summary; 54 local summary;
55 -- Compose a sensible textual representation of at least Atom payloads 55 -- Compose a sensible textual representation of at least Atom payloads
56 if item and item.tags[1] then 56 if item and item.tags[1] then
57 local payload = item.tags[1]; 57 local payload = item.tags[1];
58 if payload.attr.xmlns == "http://www.w3.org/2005/Atom" then 58 if payload.attr.xmlns == "http://www.w3.org/2005/Atom" then
59 message:reset();
60 local title = payload:get_child_text("title"); 59 local title = payload:get_child_text("title");
61 summary = payload:get_child_text("summary"); 60 summary = payload:get_child_text("summary");
62 if not summary and title then 61 if not summary and title then
63 local author = payload:find("author/name#"); 62 local author = payload:find("author/name#");
64 summary = title; 63 summary = title;