Skip to content

Commit a3714ea

Browse files
committed
fix: new webmention format can be a string for targetpage
fixes #68
1 parent c20b032 commit a3714ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/receiveKomment.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ class KommentReceiver
1111
{
1212
public function storeData(array $newEntry, $targetPage)
1313
{
14+
15+
if(is_string($targetPage)) {
16+
$targetPage = page($targetPage);
17+
}
18+
1419
$fieldData = $targetPage->kommentsInbox()->yaml();
1520
$fieldData[] = $newEntry;
1621
$fieldData = yaml::encode($fieldData);

0 commit comments

Comments
 (0)