master
Aevann1 2022-01-28 06:37:40 +02:00
parent 30b91d8a23
commit 9c0e14c642
7 changed files with 12 additions and 12 deletions

View File

@ -212,12 +212,12 @@ ACTIONTYPES={
"color": "bg-success", "color": "bg-success",
}, },
"agendaposter": { "agendaposter": {
"str": "set agendaposter theme on {self.target_link}", "str": "set chud theme on {self.target_link}",
"icon": "fa-user-slash", "icon": "fa-user-slash",
"color": "bg-danger", "color": "bg-danger",
}, },
"unagendaposter": { "unagendaposter": {
"str": "removed agendaposter theme from {self.target_link}", "str": "removed chud theme from {self.target_link}",
"icon": "fa-user-slash", "icon": "fa-user-slash",
"color": "bg-success", "color": "bg-success",
}, },

View File

@ -400,8 +400,8 @@ AWARDS = {
}, },
"agendaposter": { "agendaposter": {
"kind": "agendaposter", "kind": "agendaposter",
"title": "Rightoid", "title": "Chud",
"description": "Forces the rightoid theme on the recipient for 24 hours.", "description": "Forces the chud theme on the recipient for 24 hours.",
"icon": "fas fa-snooze", "icon": "fas fa-snooze",
"color": "text-purple", "color": "text-purple",
"price": 2500 "price": 2500

View File

@ -727,7 +727,7 @@ def agendaposter(user_id, v):
g.db.commit() g.db.commit()
if user.agendaposter: return redirect(user.url) if user.agendaposter: return redirect(user.url)
return {"message": "Agendaposter theme disabled!"} return {"message": "Chud theme disabled!"}
@app.post("/shadowban/<user_id>") @app.post("/shadowban/<user_id>")

View File

@ -173,7 +173,7 @@ def front_all(v):
if v.agendaposter_expires_utc and v.agendaposter_expires_utc < time.time(): if v.agendaposter_expires_utc and v.agendaposter_expires_utc < time.time():
v.agendaposter_expires_utc = 0 v.agendaposter_expires_utc = 0
v.agendaposter = None v.agendaposter = None
send_repeatable_notification(v.id, "Your agendaposter theme has expired!") send_repeatable_notification(v.id, "Your chud theme has expired!")
g.db.add(v) g.db.add(v)
badge = v.has_badge(26) badge = v.has_badge(26)
if badge: g.db.delete(badge) if badge: g.db.delete(badge)

View File

@ -24,7 +24,7 @@
<li><a href="/admin/users">Users Feed</a></li> <li><a href="/admin/users">Users Feed</a></li>
<li><a href="/admin/shadowbanned">Shadowbanned Users</a></li> <li><a href="/admin/shadowbanned">Shadowbanned Users</a></li>
<li><a href="/banned">Permabanned Users</a></li> <li><a href="/banned">Permabanned Users</a></li>
<li><a href="/agendaposters">Users with Agendaposter Theme</a></li> <li><a href="/agendaposters">Users with Chud Theme</a></li>
<li><a href="/grassed">Currently Grassed Users</a></li> <li><a href="/grassed">Currently Grassed Users</a></li>
</ul> </ul>

View File

@ -255,9 +255,9 @@
<form id="agendaposter1" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post"> <form id="agendaposter1" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post">
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}"> <input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
<input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)" > <input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)" >
<input autocomplete="off" type="submit" class="btn btn-danger" value="Lock Agendaposter Theme" > <input autocomplete="off" type="submit" class="btn btn-danger" value="Lock Chud Theme" >
</form> </form>
<a id="unagendaposter" class="{% if not u.agendaposter %}d-none{% endif %} btn btn-success" role="button" onclick="post_toast2('/agendaposter/{{u.id}}','agendaposter1','unagendaposter')">Disable Agendaposter Theme</a> <a id="unagendaposter" class="{% if not u.agendaposter %}d-none{% endif %} btn btn-success" role="button" onclick="post_toast2('/agendaposter/{{u.id}}','agendaposter1','unagendaposter')">Disable Chud Theme</a>
<pre></pre> <pre></pre>
@ -540,9 +540,9 @@
<form id="agendaposter2" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post"> <form id="agendaposter2" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post">
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}"> <input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
<input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)" > <input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)" >
<input autocomplete="off" type="submit" class="btn btn-danger" value="Lock Agendaposter Theme" > <input autocomplete="off" type="submit" class="btn btn-danger" value="Lock Chud Theme" >
</form> </form>
<a id="unagendaposter2" class="{% if not u.agendaposter %}d-none{% endif %} btn btn-success" role="button" onclick="post_toast2('/agendaposter/{{u.id}}','agendaposter2','unagendaposter2')">Disable Agendaposter Theme</a> <a id="unagendaposter2" class="{% if not u.agendaposter %}d-none{% endif %} btn btn-success" role="button" onclick="post_toast2('/agendaposter/{{u.id}}','agendaposter2','unagendaposter2')">Disable Chud Theme</a>
<pre></pre> <pre></pre>

View File

@ -55,7 +55,7 @@ INSERT INTO public.badge_defs VALUES
(23,'Landchad','Contributed at least $20'), (23,'Landchad','Contributed at least $20'),
(24,'Terminally online turboautist','Contributed at least $50'), (24,'Terminally online turboautist','Contributed at least $50'),
(25,'Rich Bich','Contributed at least $100'), (25,'Rich Bich','Contributed at least $100'),
(26,'Rightoid','Forced to use the rightoid theme'), (26,'Chud','Forced to use the chud theme'),
(27,'Lolcow','Beautiful and valid milk provider'), (27,'Lolcow','Beautiful and valid milk provider'),
(60,'Unironically Retarded','Demonstrated a wholesale inability to read the room'), (60,'Unironically Retarded','Demonstrated a wholesale inability to read the room'),
(61,'Lab Rat','Helped test features in development'), (61,'Lab Rat','Helped test features in development'),