From 530c8ca936fa6c78e62acd11b07e8d9ff9ccd34a Mon Sep 17 00:00:00 2001
From: Martin Leblanc <m26lebla@uwaterloo.ca>
Date: Wed, 5 Oct 2022 16:00:10 -0400
Subject: [PATCH] ISTWCMS-5862: removed the teaser logic and only load the date
 through the card header for news node

---
 src/Service/UwNodeContent.php | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/Service/UwNodeContent.php b/src/Service/UwNodeContent.php
index 383d485e..d7abe39e 100644
--- a/src/Service/UwNodeContent.php
+++ b/src/Service/UwNodeContent.php
@@ -401,13 +401,7 @@ class UwNodeContent {
 
     // Setup the header content.
     if ($node_flags['get_header']) {
-      if ($view_mode == 'teaser') {
-        $content_data['header']['date'] = $this->addToContentData('date', 'field_uw_news_date');
-      }
-      else {
-        $content_data['header']['date'] = $this->addToContentData('date', 'field_uw_news_date');
-        $content_data['header']['author'] = $this->addToContentData('author', 'field_author');
-      }
+      $content_data['header']['date'] = $this->addToContentData('date', 'field_uw_news_date');
     }
 
     // Get the media.
-- 
GitLab