Skip to content

Commit

Permalink
fix: allow empty author
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Nov 28, 2024
1 parent a4b8645 commit 0f0d636
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/WebmentionStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function trackMention(
string $source,
string $type,
?string $image,
string $author,
?string $author,
string $title
) {
if ($this->doNotTrackHost($source)) {
Expand All @@ -36,6 +36,10 @@ public function trackMention(

$mentionDate = $this->indieDb->getFormattedDate();

if (is_null($author)) {
$author = '';
}

if (is_null($image)) {
$image = '';
}
Expand Down

0 comments on commit 0f0d636

Please sign in to comment.