This commit is contained in:
@ -81,16 +81,22 @@ class TfTabNewsFeedElement extends LitElement {
|
||||
`,
|
||||
[JSON.stringify(combined.map((x) => x.id))]
|
||||
);
|
||||
return [].concat(combined, await tfrpc.rpc.query(
|
||||
`
|
||||
return [].concat(
|
||||
combined,
|
||||
await tfrpc.rpc.query(
|
||||
`
|
||||
SELECT FALSE AS is_primary, messages.rowid, messages.id, messages.previous, messages.author, messages.sequence, messages.timestamp, messages.hash, json(messages.content) AS content, messages.signature
|
||||
FROM messages
|
||||
JOIN json_each(?2) refs ON messages.id = refs.value
|
||||
JOIN json_each(?1) AS following ON messages.author = following.value
|
||||
WHERE messages.content ->> 'type' = 'vote'
|
||||
`,
|
||||
[JSON.stringify(this.following), JSON.stringify(refs2.map((x) => x.ref))]
|
||||
));
|
||||
[
|
||||
JSON.stringify(this.following),
|
||||
JSON.stringify(refs2.map((x) => x.ref)),
|
||||
]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
async fetch_messages(start_time, end_time) {
|
||||
|
Reference in New Issue
Block a user