fix(notifications/timeline): low lengths. chore(config): add invidious.fdn.fr.
This commit is contained in:
parent
340fed6346
commit
39a88b2722
3 changed files with 6 additions and 4 deletions
|
@ -12,7 +12,8 @@ exports.runQuery = function (roomId) {
|
|||
const len = events.length;
|
||||
for (let i = len - 1; i >= 0; i--) {
|
||||
if (past.findIndex((x) => x.created_at === events[i].created_at) === -1) {
|
||||
if (events[i].created_at < past.slice(18, 19)[0].created_at) return;
|
||||
const lastStored = past.slice(past.length - 1, past.length);
|
||||
if (events[i].created_at < lastStored[0].created_at) return;
|
||||
events[i].label = 'status';
|
||||
fediverse.utils.formatter(events[i], roomId);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,8 @@ exports.runQuery = function (roomId) {
|
|||
const len = events.length;
|
||||
for (let i = len - 1; i >= 0; i--) {
|
||||
if (past.findIndex((x) => x.created_at === events[i].created_at) === -1) {
|
||||
if (events[i].created_at < past.slice(18, 19)[0].created_at) return;
|
||||
const lastStored = past.slice(past.length - 1, past.length);
|
||||
if (events[i].created_at < lastStored[0].created_at) return;
|
||||
events[i].label = 'notifications';
|
||||
fediverse.utils.formatter(events[i], roomId);
|
||||
}
|
||||
|
|
|
@ -25,12 +25,12 @@ module.exports = {
|
|||
nitter: {
|
||||
domain: 'nitter.fdn.fr',
|
||||
userAgent: 'Mozilla/4.0 (compatible; Beep Boop)',
|
||||
domains: [ 'nitter.net', 'www.nitter.net', 'twitter.com', 'www.twitter.com', 'mobile.twitter.com', 'm.twitter.com' ],
|
||||
domains: [ 'nitter.net', 'www.nitter.net', 'twitter.com', 'www.twitter.com', 'mobile.twitter.com', 'm.twitter.com', 'nitter.fdn.fr' ],
|
||||
check: '(✅)'
|
||||
},
|
||||
invidious: {
|
||||
domain: 'invidious.fdn.fr',
|
||||
userAgent: 'Mozilla/4.0 (compatible; Beep Boop)',
|
||||
domains: [ 'invidious.snopyta.org', 'invidious.xyz', 'youtube.com', 'www.youtube.com', 'youtu.be', 'm.youtube.com' ]
|
||||
domains: [ 'invidious.snopyta.org', 'invidious.xyz', 'youtube.com', 'www.youtube.com', 'youtu.be', 'm.youtube.com', 'invidious.fdn.fr' ]
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue