This commit is contained in:
Barış Soner Uşaklı
2023-12-27 18:31:56 -05:00
parent 28ba6c04cb
commit c5730b36c2

View File

@@ -10,7 +10,8 @@ define('forum/topic/events', [
'components', 'components',
'translator', 'translator',
'hooks', 'hooks',
], function (postTools, threadTools, posts, images, components, translator, hooks) { 'helpers',
], function (postTools, threadTools, posts, images, components, translator, hooks, helpers) {
const Events = {}; const Events = {};
const events = { const events = {
@@ -152,7 +153,7 @@ define('forum/topic/events', [
editorEl.replaceWith(html); editorEl.replaceWith(html);
postContainer.find('[component="post/edit-indicator"]') postContainer.find('[component="post/edit-indicator"]')
.removeClass('hidden') .removeClass('hidden')
.translateAttr('title', `[[global:edited-timestamp, ${editData.editedISO}]]`); .translateAttr('title', `[[global:edited-timestamp, ${helpers.isoTimeToLocaleString(editData.editedISO, config.userLang)}]]`);
postContainer.find('[component="post/editor"] .timeago').timeago(); postContainer.find('[component="post/editor"] .timeago').timeago();
hooks.fire('action:posts.edited', data); hooks.fire('action:posts.edited', data);
}); });