ssb: Revise private scanning slightly.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 34m58s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 34m58s
This commit is contained in:
parent
626c18b04e
commit
d4a7b86ee7
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🦀",
|
"emoji": "🦀",
|
||||||
"previous": "&i6mkfmh4sW8PpILznWL8VxDzI3MX6V5OJWDs47Qxias=.sha256"
|
"previous": "&j9NkLFuUOfxQhgR6Z3fA4kCWRY1Dcv+7AIAaoaffiBU=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -305,12 +305,16 @@ class TfElement extends LitElement {
|
|||||||
const k_chunk_size = 512;
|
const k_chunk_size = 512;
|
||||||
if (cache.range.length) {
|
if (cache.range.length) {
|
||||||
for (let i = cache.range[1]; i < latest; i += k_chunk_size) {
|
for (let i = cache.range[1]; i < latest; i += k_chunk_size) {
|
||||||
ranges.push([i, Math.min(i + k_chunk_size, latest), true]);
|
ranges.push([
|
||||||
|
i,
|
||||||
|
Math.min(i + k_chunk_size, latest),
|
||||||
|
true,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
for (let i = cache.range[0]; i >= 0; i -= k_chunk_size) {
|
for (let i = cache.range[0]; i >= 0; i -= k_chunk_size) {
|
||||||
ranges.push([
|
ranges.push([
|
||||||
Math.max(i - k_chunk_size, 0),
|
Math.max(i - k_chunk_size, 0),
|
||||||
Math.min(cache.range[0], i + k_chunk_size),
|
i,
|
||||||
false,
|
false,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -328,7 +332,7 @@ class TfElement extends LitElement {
|
|||||||
messages.rowid > ?1 AND
|
messages.rowid > ?1 AND
|
||||||
messages.rowid <= ?2 AND
|
messages.rowid <= ?2 AND
|
||||||
json(messages.content) LIKE '"%'
|
json(messages.content) LIKE '"%'
|
||||||
ORDER BY sequence DESC
|
ORDER BY messages.rowid DESC
|
||||||
`,
|
`,
|
||||||
[range[0], range[1]]
|
[range[0], range[1]]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user