From 851c66f38c5348831fb8ee7a88066f4e02351554 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 13 Sep 2021 14:57:37 +0100 Subject: [PATCH] video-channels users path --- utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utils.py b/utils.py index eef09fcc2..d6d8795a4 100644 --- a/utils.py +++ b/utils.py @@ -1012,14 +1012,15 @@ def getUserPaths() -> []: """Returns possible user paths e.g. /users/nickname, /channel/nickname """ - return ('/users/', '/profile/', '/accounts/', '/channel/', '/u/', '/c/') + return ('/users/', '/profile/', '/accounts/', '/channel/', '/u/', + '/c/', '/video-channels/') def getGroupPaths() -> []: """Returns possible group paths e.g. https://lemmy/c/groupname """ - return ['/c/'] + return ['/c/', '/video-channels/'] def getDomainFromActor(actor: str) -> (str, int): @@ -1773,7 +1774,7 @@ def isValidLanguage(text: str) -> bool: def _getReservedWords() -> str: return ('inbox', 'dm', 'outbox', 'following', 'public', 'followers', 'category', - 'channel', 'calendar', + 'channel', 'calendar', 'video-channels', 'tlreplies', 'tlmedia', 'tlblogs', 'tlblogs', 'tlfeatures', 'moderation', 'moderationaction',