mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-16 17:32:59 +01:00
pick lints
This commit is contained in:
parent
46432161b8
commit
799cc0d098
1 changed files with 2 additions and 2 deletions
|
@ -104,13 +104,13 @@ export class FeedService {
|
||||||
}
|
}
|
||||||
|
|
||||||
// this logic is copied from NoteEntityService.hideNote
|
// this logic is copied from NoteEntityService.hideNote
|
||||||
private compareDates(reference, createdAt: Date): boolean {
|
private compareDates(reference: number | null, createdAt: Date): boolean {
|
||||||
if ((reference != null)
|
if ((reference != null)
|
||||||
&& (
|
&& (
|
||||||
(reference <= 0 && (Date.now() - createdAt.getTime() > 0 - (reference * 1000)))
|
(reference <= 0 && (Date.now() - createdAt.getTime() > 0 - (reference * 1000)))
|
||||||
|| (reference > 0 && (createdAt.getTime() < reference * 1000))
|
|| (reference > 0 && (createdAt.getTime() < reference * 1000))
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue