Skip to content

Commit

Permalink
doc: clarify slug_create
Browse files Browse the repository at this point in the history
Not everyone knows what a "slug" is, let's clarify it a bit and also say
where it is used.

Signed-off-by: Simon de Vlieger <[email protected]>
  • Loading branch information
supakeen committed Jun 25, 2024
1 parent 71fd383 commit e0b5f2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pinnwand/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def slug_create(
) -> str:
"""Creates a new slug, a slug has to be unique within both the Paste and
File namespace. These slugs auto-lengthen unless they are specified not
to."""
to.
Slugs are unique identifiers that are used the URLs that pinnwand serves
pastes and files on."""

if dont_use is None:
dont_use = []
Expand Down

0 comments on commit e0b5f2c

Please sign in to comment.