ssb: Bring back the date. Whoops.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 29m37s

This commit is contained in:
2025-04-05 22:05:26 -04:00
parent 8be354fc49
commit 657f25e22b
6 changed files with 73 additions and 35 deletions

View File

@ -189,7 +189,7 @@ class TfTabNewsFeedElement extends LitElement {
UNION
SELECT refs_in.message AS ref FROM messages_refs refs_in JOIN news ON refs_in.ref = news.id
`,
[JSON.stringify(result.map(x => x.id))]
[JSON.stringify(result.map((x) => x.id))]
);
let t2 = new Date();
let related_messages = await tfrpc.rpc.query(
@ -199,7 +199,8 @@ class TfTabNewsFeedElement extends LitElement {
JOIN json_each(?2) refs ON messages.id = refs.value
JOIN json_each(?1) AS following ON messages.author = following.value
`,
[JSON.stringify(this.following), JSON.stringify(refs.map(x => x.ref))]);
[JSON.stringify(this.following), JSON.stringify(refs.map((x) => x.ref))]
);
result = [].concat(result, related_messages);
let t3 = new Date();
console.log(