diff --git a/src/app/components/stream/status/status.component.ts b/src/app/components/stream/status/status.component.ts index 5a000671..47c99fc2 100644 --- a/src/app/components/stream/status/status.component.ts +++ b/src/app/components/stream/status/status.component.ts @@ -80,23 +80,23 @@ export class StatusComponent implements OnInit { return false; } - getCompactRelativeTime(d: string): string { - const date = (new Date(d)).getTime(); - const now = Date.now(); - const timeDelta = (now - date) / (1000); + // getCompactRelativeTime(d: string): string { + // const date = (new Date(d)).getTime(); + // const now = Date.now(); + // const timeDelta = (now - date) / (1000); - if (timeDelta < 60) { - return `${timeDelta | 0}s`; - } else if (timeDelta < 60 * 60) { - return `${timeDelta / 60 | 0}m`; - } else if (timeDelta < 60 * 60 * 24) { - return `${timeDelta / (60 * 60) | 0}h`; - } else if (timeDelta < 60 * 60 * 24 * 31) { - return `${timeDelta / (60 * 60 * 24) | 0}d`; - } + // if (timeDelta < 60) { + // return `${timeDelta | 0}s`; + // } else if (timeDelta < 60 * 60) { + // return `${timeDelta / 60 | 0}m`; + // } else if (timeDelta < 60 * 60 * 24) { + // return `${timeDelta / (60 * 60) | 0}h`; + // } else if (timeDelta < 60 * 60 * 24 * 31) { + // return `${timeDelta / (60 * 60 * 24) | 0}d`; + // } - return formatDate(date, 'MM/dd', this.locale); - } + // return formatDate(date, 'MM/dd', this.locale); + // } openReply(): boolean { this.replyingToStatus = !this.replyingToStatus;