From 976aa73d2997cd5c0376cd66e13022f66fc99cae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Fri, 23 Jun 2023 18:11:28 +0300
Subject: [PATCH 1/1] Fixed search results linking to issues
subspace.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subspace.py b/subspace.py
index 39c1293..33f076e 100644
--- a/subspace.py
+++ b/subspace.py
@@ -329,7 +329,7 @@ def make_search_page(session):
kind = "Comment" if obj.parent else f"Issue #{obj.issueid}" if obj.issueid else "Post"
title = f' "{shorten_text(obj.title, 30)}"' if obj.title else ''
scope_desc = f"in {ctx} " if not scope and not obj.sub_owner else ""
page += f'=> /{ctx}/{obj.id} {kind}{title} {scope_desc}by {obj.poster_avatar} {obj.poster_name} on {obj.ymd_date(tz=session.tz)} {" · " if obj.tags else ""}{obj.tags}\n'
page += f'=> /{ctx}/{obj.issueid if obj.issueid else obj.id} {kind}{title} {scope_desc}by {obj.poster_avatar} {obj.poster_name} on {obj.ymd_date(tz=session.tz)} {" · " if obj.tags else ""}{obj.tags}\n'
SEGTYPES = ['content', 'URL', 'image', 'attachment', 'poll option']
if result[2] != Segment.TEXT:
page += f'(matching {SEGTYPES[result[2]]}) '
--
2.25.1
text/plain
This content has been proxied by September (3851b).