aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2018-09-22 10:44:51 +0200
committerMario <mario@mariovavti.com>2018-09-22 10:44:51 +0200
commited00d1b2e3895f5feb0767d1b002f7be08797379 (patch)
tree0e1d909710a7c7c21073ccd826acd2b1f5e6c03f /boot.php
parent2b452ffbd370f52122577910a8b36846d526678d (diff)
downloadvolse-hubzilla-ed00d1b2e3895f5feb0767d1b002f7be08797379.tar.gz
volse-hubzilla-ed00d1b2e3895f5feb0767d1b002f7be08797379.tar.bz2
volse-hubzilla-ed00d1b2e3895f5feb0767d1b002f7be08797379.zip
Page meta properties
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index e8c1355e8..3d583e8c5 100755
--- a/boot.php
+++ b/boot.php
@@ -1119,8 +1119,12 @@ class App {
if(! x(self::$page,'title'))
self::$page['title'] = self::$config['system']['sitename'];
- if(! self::$meta->get_field('og:title'))
- self::$meta->set('og:title',self::$page['title']);
+ $pagemeta = [ 'og:title' => self::$page['title'] ];
+
+ call_hooks('page_meta',$pagemeta);
+ foreach ($pagemeta as $metaproperty => $metavalue) {
+ self::$meta->set($metaproperty,$metavalue);
+ }
self::$meta->set('generator', Zotlabs\Lib\System::get_platform_name());