finalize ignore feature

This commit is contained in:
2025-07-08 14:38:11 +02:00
parent 38e8b4c2ba
commit 5591070979

View File

@ -374,18 +374,16 @@ export class TimelineReader {
}
private async checkAndSavePost(post: Post) {
if (IGNORE_USERS !== undefined && IGNORE_USERS !== '' && IGNORE_USERS !== 'CHANGE_ME') {
const ignorelist = IGNORE_USERS.split(',');
const isIgnored = ignorelist.includes(post.account.username);
const isIgnoredDb = this.ignoredUsers.includes(post.account.username);
this.logger.debug(
'Check if user',
const isIgnored = this.ignoredUsers.includes(post.account.username);
if (isIgnored) {
this.logger.info(
'Ignoring post by ignored user',
post.account.username,
'is ignored',
this.ignoredUsers,
isIgnored,
isIgnoredDb
isIgnored
);
return;
}
const hashttags: string[] = HASHTAG_FILTER.split(',');