Skip to content

Commit 46c24d4

Browse files
committed
Issues-481:Author redundancy for discussions/comments
1 parent b511adf commit 46c24d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/vanilla/bootstrap.before.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,14 @@ function_exists('topcoderRoleCssStyles')) {
299299
*/
300300
function dateUpdated($row, $wrap = null) {
301301
$result = '';
302+
$insertUserID = val('InsertUserID', $row);
302303
$dateUpdated = val('DateUpdated', $row);
303304
$updateUserID = val('UpdateUserID', $row);
304305

305306
if ($dateUpdated) {
306307
$updateUser = Gdn::userModel()->getID($updateUserID);
307308
$dateUpdatedFormatted = Gdn::getContainer()->get(DateTimeFormatter::class)->formatDate($dateUpdated, false, DateTimeFormatter::FORCE_FULL_FORMAT);
308-
if ($updateUser) {
309+
if ($updateUser && $insertUserID != $updateUserID) {
309310
$title = sprintf(t('Edited %s by %s.'), $dateUpdatedFormatted, val('Name', $updateUser));
310311
$link = userAnchor($updateUser);
311312
$text = sprintf(t('edited %s by %s'), $dateUpdatedFormatted, $link);

0 commit comments

Comments
 (0)