Skip to content

Commit f97cb9a

Browse files
committed
fix: guid must be a full URL, use item link url
1 parent 993d52d commit f97cb9a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

downloads/views.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,9 @@ def item_pubdate(self, item: Release) -> datetime | None:
194194
return None
195195

196196
def item_guid(self, item: Release) -> str:
197-
"""Return a unique ID for the item based on DB record."""
198-
return str(item.pk)
197+
"""Return a link as the GUID for the item.
198+
199+
``guid`` must be a full URL, unless `isPermaLink` attribute is false
200+
https://validator.w3.org/feed/docs/error/InvalidHttpGUID.html
201+
"""
202+
return str(self.link())

0 commit comments

Comments
 (0)