From 02f51ec7ff4a336e1068eda0eb6ff1cbe458d74c Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 22 Jul 2024 07:43:39 +1000 Subject: [PATCH] sql typo --- FEDERATION.md | 2 ++ src/Module/Replies.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/FEDERATION.md b/FEDERATION.md index a97e12580..4f2c7cd44 100644 --- a/FEDERATION.md +++ b/FEDERATION.md @@ -46,6 +46,8 @@ Planned support: - ~~FEP-f1d5: Nodeinfo in FediverseSoftware~~ Take your trackers and MAUs and stick them where the sun don't shine. - ~~FEP-eb48: Hashtags~~ Hashtags were once called "folksonomy"; created by **people** for their own needs. We support multiword hashtags and hashtags with emojis and other special characters, because people asked for them. We will not be removing this support. +- ~~FEP-a5c5: Web Syndication Methods~~ Since you don't know if a provider will support Atom or RSS or both or neither, use Link discovery, which is a well established technology -- rather than depending on named route components. + ## C2S diff --git a/src/Module/Replies.php b/src/Module/Replies.php index cd70b3f20..70de8509b 100644 --- a/src/Module/Replies.php +++ b/src/Module/Replies.php @@ -63,7 +63,7 @@ class Replies extends Controller if ($xchans) { $hashes = ids_to_querystr($xchans, 'xchan_hash', true); $i = q( - "select item.* id as item_id from item where mid = '%s' $item_normal and owner_xchan in ( " . protect_sprintf($hashes) . " ) limit 1", + "select item.*, id as item_id from item where mid = '%s' $item_normal and owner_xchan in ( " . protect_sprintf($hashes) . " ) limit 1", dbesc($test[0]['mid']) ); }