1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 23:36:29 +02:00

Closes #4702 - Added news_modified field.

This commit is contained in:
Cameron
2022-03-14 14:03:34 -07:00
parent 6257a2a716
commit 057cc8e35b
4 changed files with 8 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ class news_gsitemap
{
$ret[] = [
'url' => $this->url('news', $row),
'lastmod' => (int) $row['news_datestamp'],
'lastmod' => !empty($row['news_modified']) ? $row['news_modified'] : (int) $row['news_datestamp'],
'freq' => 'hourly',
'priority' => 0.5
];

View File

@@ -718,7 +718,8 @@ class news_front
$c++;
}
$modifiedTime = strtotime('30 minutes ago');
$modifiedTime = !empty($news['news_modified']) ? (int) $news['news_modified'] : (int) $news['news_datestamp'];
e107::meta('og:updated_time', $modifiedTime);
e107::meta('article:section', $news['category_name']);