Fix updating video tags to empty field
[oweals/peertube.git] / client / src / app / shared / misc / from-now.pipe.ts
index 25e5d6a85791ad4aed7b6b549d1e6ba938fb3619..fac02af0bd6b59e3aa23c1e10d5ccc766f2b428b 100644 (file)
@@ -1,8 +1,7 @@
 import { Pipe, PipeTransform } from '@angular/core'
 
-// Thanks: https://github.com/danrevah/ngx-pipes/blob/master/src/pipes/math/bytes.ts
-
-@Pipe({name: 'fromNow'})
+// Thanks: https://stackoverflow.com/questions/3177836/how-to-format-time-since-xxx-e-g-4-minutes-ago-similar-to-stack-exchange-site
+@Pipe({ name: 'myFromNow' })
 export class FromNowPipe implements PipeTransform {
 
   transform (value: number) {