page: record author metadata on creation
[minimedit.git] / page.php
index 5aac31fd7e503b2ede328eaf79a29290aff77e09..14b58db8060484ba3fa2f3e022b554da7d32a153 100644 (file)
--- a/page.php
+++ b/page.php
@@ -173,6 +173,7 @@ $Place = [
 if (!isset($Article->raw) and $User->admin("edit {$Article->link}")) {
        # open template as initial contents
        $Article->raw(file_exists("$Page/template.inc.html") ? "$Page/template.inc.html" : 'template.inc.html');
+       $Article->meta['article:author'] = '/' . $User->dir;
 }
 
 if (isset($Article->raw)) {