From aedd52f1458489874fbd5a3ac6ced0fe188969ae Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 19 Feb 2024 22:57:10 -0500 Subject: [PATCH] Cleanup article render, show clickable link --- slixfeed/xmpp/client.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/slixfeed/xmpp/client.py b/slixfeed/xmpp/client.py index fe7674c..29979e1 100644 --- a/slixfeed/xmpp/client.py +++ b/slixfeed/xmpp/client.py @@ -689,7 +689,6 @@ class Slixfeed(slixmpp.ClientXMPP): db_file = config.get_pathname_to_database(jid_file) title = sqlite.get_entry_title(db_file, ix) form = self['xep_0004'].make_form('result', 'Updates') - form['instructions'] = title[0] if title else 'Untitled' url = sqlite.get_entry_url(db_file, ix) if url: url = url[0] @@ -700,11 +699,13 @@ class Slixfeed(slixmpp.ClientXMPP): else: summary = 'No content to show.' form.add_field(ftype="text-multi", + label=(title[0] if title else 'Untitled'), value=summary) - form['instructions'] = url - form.add_field(var='url', - ftype='hidden', - value=url) + url = form.add_field(var='url', + label='Link', + ftype='text-single', + value=url) + url['validate']['datatype'] = 'xs:anyURI' form['instructions'] = 'Proceed to download article.' session['allow_prev'] = True session['has_next'] = True