plugin XEP-0277, doc: conflict is now checked and avoided if user_friendly_id_suffix is False, doc updated

This commit is contained in:
Goffi 2023-12-05 13:39:03 +01:00
commit d80c4e89dc

View file

@ -17,11 +17,17 @@ The `set` and `edit` commands support a range of options for customizing blog po
``--no-id-suffix``
This option removes the randomly generated suffix from the auto-generated, user-friendly ID. The suffix is initially added to ensure unique IDs, especially useful when two posts have similar titles. Use this option with caution, as it may lead to ID conflicts and potential overwriting of existing posts.
This option removes the randomly generated suffix from the auto-generated,
user-friendly ID. The suffix is initially added to ensure unique IDs, especially useful
when two posts have similar titles.
.. warning::
.. note::
Use this option judiciously to avoid unintended overwriting of blog posts.
When the ``--no-id-suffix`` option is selected, an extra validation is performed to
check for ID uniqueness. If an existing item already uses the same ID, a suffix is
added to the new ID regardless of the option, ensuring no existing content is
overwritten. This additional check incurs a slight performance impact due to the
extra request needed.
``--alt-link URL [MEDIA_TYPE]``