mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Semi-Kill #9531
This commit is contained in:
parent
506a38e197
commit
1104db515e
1 changed files with 10 additions and 0 deletions
|
@ -115,6 +115,16 @@ export async function createNote(
|
|||
|
||||
logger.info(`Creating the Note: ${note.id}`);
|
||||
|
||||
// Skip if note is made before 2007 (1yr before Fedi was created)
|
||||
if (note.published) {
|
||||
const DateChecker = new Date(note.published)
|
||||
if (DateChecker.getFullYear() < 2007) {
|
||||
logger.warn('Note somehow made before Activitypub was created; discarding');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Fetch author
|
||||
const actor = (await resolvePerson(
|
||||
getOneApId(note.attributedTo),
|
||||
|
|
Loading…
Add table
Reference in a new issue