mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-28 21:28:19 +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
|
||||
private compareDates(reference, createdAt: Date): boolean {
|
||||
private compareDates(reference: number | null, createdAt: Date): boolean {
|
||||
if ((reference != null)
|
||||
&& (
|
||||
(reference <= 0 && (Date.now() - createdAt.getTime() > 0 - (reference * 1000)))
|
||||
|| (reference > 0 && (createdAt.getTime() < reference * 1000))
|
||||
)
|
||||
) {
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue