зеркало из https://github.com/nextcloud/spreed.git
No relative date on the comment after a day, makes no sense...
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
9fa0cf04a8
Коммит
7f75568720
|
@ -159,8 +159,8 @@
|
|||
var data = _.extend({}, commentModel.attributes, {
|
||||
actorDisplayName: actorDisplayName,
|
||||
timestamp: timestamp,
|
||||
date: OC.Util.relativeModifiedDate(timestamp),
|
||||
altDate: OC.Util.formatDate(timestamp, 'LL LTS'),
|
||||
date: moment(timestamp, 'x').diff(moment()) > -86400000 ? OC.Util.relativeModifiedDate(timestamp) : OC.Util.formatDate(timestamp, 'LT'),
|
||||
altDate: OC.Util.formatDate(timestamp),
|
||||
formattedMessage: formattedMessage
|
||||
});
|
||||
return data;
|
||||
|
|
Загрузка…
Ссылка в новой задаче