1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2024-11-25 05:42:45 +01:00

Compare commits

..

2 Commits

Author SHA1 Message Date
0072e025f4
Fix broken links to image embeds in viewer 2024-04-21 20:55:06 +02:00
383ee5c90e
Stream messages to viewer using JSON lines 2024-04-21 20:55:05 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import discord from "./discord.mjs";
// ------------------------
const filter = {
byUser: ((userindex) => message => message.u === userindex),
byUser: ((user) => message => message.u === user),
byTime: ((timeStart, timeEnd) => message => message.t >= timeStart && message.t <= timeEnd),
byContents: ((substr) => message => ("m" in message ? message.m : "").indexOf(substr) !== -1),
byRegex: ((regex) => message => regex.test("m" in message ? message.m : "")),

View File

@ -411,7 +411,7 @@ export default (function() {
setActiveFilter(filter) {
switch (filter ? filter.type : "") {
case "user":
filterFunction = processor.FILTER.byUser(loadedFileMeta.userindex.indexOf(filter.value));
filterFunction = processor.FILTER.byUser(filter.value);
break;
case "contents":