don't suggest posting in restricted communities ~
This commit is contained in:
parent
48f0582096
commit
a1dffc6a37
2 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ ILLEGAL_USERNAMES = tuple((
|
||||||
'loli kkk pnf adl cop tranny google trustandsafety safety ice fbi nsa it '
|
'loli kkk pnf adl cop tranny google trustandsafety safety ice fbi nsa it '
|
||||||
## VVVVIP
|
## VVVVIP
|
||||||
'potus realdonaldtrump elonmusk teddysphotos mrbeast jkrowling pewdiepie '
|
'potus realdonaldtrump elonmusk teddysphotos mrbeast jkrowling pewdiepie '
|
||||||
'elizabethii king queen pontifex hogwarts lumos alohomora '
|
'elizabethii king queen pontifex hogwarts lumos alohomora isis daesh '
|
||||||
).split())
|
).split())
|
||||||
|
|
||||||
def username_is_legal(username: str) -> bool:
|
def username_is_legal(username: str) -> bool:
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
<!-- no user -->
|
<!-- no user -->
|
||||||
{% elif current_user.is_authenticated %}
|
{% elif current_user.is_authenticated %}
|
||||||
<li class="nomobile">
|
<li class="nomobile">
|
||||||
<a class="round border-accent" href="{{ url_for('create.create', on=current_guild.name) if current_guild else '/create/' }}" title="Create a post" aria-label="Create a post">
|
<a class="round border-accent" href="{{ url_for('create.create', on=current_guild.name) if current_guild and current_guild.allows_posting(current_user) else '/create/' }}" title="Create a post" aria-label="Create a post">
|
||||||
{{ icon('add') }}
|
{{ icon('add') }}
|
||||||
<span>New post</span>
|
<span>New post</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue