Skip to content

Commit

Permalink
dedupe entries on source url rather than h-entry url
Browse files Browse the repository at this point in the history
closes #54
  • Loading branch information
aaronpk committed Jan 28, 2022
1 parent 468838b commit 665cb06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/webmention.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@

$indieNewsPermalink = permalinkForURL($lang, $href);

# If there is no existing post for $source, update the properties
$post = ORM::for_table('posts')->where('lang', $lang)->where('href', $href)->find_one();
# If there is no existing post for $sourceURL, update the properties
$post = ORM::for_table('posts')->where('lang', $lang)->where('source_url', $sourceURL)->find_one();
if($post != FALSE) {
if($record['date']) {
$post->post_date = $utcdate->format('Y-m-d H:i:s');
Expand Down

0 comments on commit 665cb06

Please sign in to comment.