Link Warden includes an option to prevent duplicate links from being submitted, which is off by default
Having it on is extremely beneficial.
However, it does mean that the script currently reports submission failure - the API returns a HTTP 409
(always makes me happy to see an appropriate use of status codes!)
We should differentiate between "this failed" and "this link is already there"
Activity
11-Aug-24 08:13
assigned to @btasker
11-Aug-24 08:16
changed the description
11-Aug-24 08:28
mentioned in commit 41dcadfff1ee478ea8d045ffcfb93b9e150e477b
Message
feat: differentiate between submission failure and reported duplicate (utilities/auto-blog-link-preserver#11)
This also adds a
duplicates
attribute to the stats dict11-Aug-24 08:30
This is done.
The script won't print anything when a link is duplicate (doesn't quite seem worth the log churn).
However
submit_to_linkwarden()
has moved from returning a boolean to an integer