aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Models/Entry.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index 190b435c8..7ba0d3793 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -481,8 +481,9 @@ HTML;
public function hash(): string {
if ($this->hash === '') {
+ $attributes = empty($this->attributeArray('enclosures')) ? '' : json_encode($this->attributes(), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
//Do not include $this->date because it may be automatically generated when lacking
- $this->hash = md5($this->link . $this->title . $this->authors(true) . $this->originalContent() . $this->tags(true));
+ $this->hash = md5($this->link . $this->title . $this->authors(true) . $this->originalContent() . $this->tags(true) . $attributes);
}
return $this->hash;
}