Commit c6798467 authored by Neil Drumm's avatar Neil Drumm 👋
Browse files

Issue #3099925 by drumm, crawleyhost, Chi, apaderno, shelane: Do not show...

Issue #3099925 by drumm, crawleyhost, Chi, apaderno, shelane: Do not show first revision author if anonymous
parent 7216e657
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -4597,12 +4597,14 @@ function drupalorg_process_node(&$v) {
  if (project_node_is_project($v['node'])) {
    $revisions = node_revision_list($v['node']);
    $oldest_revision = $revisions[min(array_keys($revisions))];
    $v['submitted'] = t('Created by !original-author on !created, updated !changed', [
    if ($oldest_revision->uid) {
      $v['submitted'] = t('Created by !original-author on !created', [
        '!original-author' => l(format_username($oldest_revision), 'user/' . $oldest_revision->uid),
        '!created' => '<time pubdate datetime="' . $v['node']->created . '">' . format_date($v['node']->created, 'custom', 'j F Y') . '</time>',
      '!changed' => '<time pubdate datetime="' . $v['node']->changed . '">' . format_date($v['node']->changed, 'custom', 'j F Y') . '</time>',
      ]);
    }
    $v['submitted'] .= ', ' . t('updated !changed', ['!changed' => '<time pubdate datetime="' . $v['node']->changed . '">' . format_date($v['node']->changed, 'custom', 'j F Y') . '</time>']);
  }
}

/**