finalize ignore feature
This commit is contained in:
@ -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(',');
|
||||
|
Reference in New Issue
Block a user