1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Keep FB scraper up-to-date with changes.

This commit is contained in:
Cameron 2021-09-24 13:19:06 -07:00
parent c7be6a57e8
commit 3a241727f8
3 changed files with 4 additions and 1 deletions

View File

@ -4016,7 +4016,7 @@ class eResponse
protected $_meta_name_only = array('keywords', 'viewport', 'robots'); // Keep FB happy.
protected $_meta_property_only = array( // Keep FB happy.
'article:section', 'article:tag', 'article:modified_time',
'og:description', 'og:image', 'og:title',
'og:description', 'og:image', 'og:title', 'og:updated_time',
);
protected $_meta = array();
protected $_meta_robot_types = array('noindex'=>'NoIndex', 'nofollow'=>'NoFollow','noarchive'=>'NoArchive','noimageindex'=>'NoImageIndex' );

View File

@ -703,6 +703,7 @@ class news_front
$url = e107::getUrl()->create('news/view/item', $news,'full=1');
e107::meta('og:url',$url);
e107::meta('og:updated_time', strtotime('10 minutes ago'));
e107::meta('article:section',$news['category_name']);
e107::meta('article:modified_time', date('c', $news['news_datestamp']));

View File

@ -779,6 +779,8 @@ class pageClass
e107::meta('og:image',($im));
}
e107::meta('og:updated_time', strtotime('10 minutes ago'));
//return $ret;
}