forked from MarseyWorld/MarseyWorld
master
parent
30b91d8a23
commit
9c0e14c642
|
@ -212,12 +212,12 @@ ACTIONTYPES={
|
|||
"color": "bg-success",
|
||||
},
|
||||
"agendaposter": {
|
||||
"str": "set agendaposter theme on {self.target_link}",
|
||||
"str": "set chud theme on {self.target_link}",
|
||||
"icon": "fa-user-slash",
|
||||
"color": "bg-danger",
|
||||
},
|
||||
"unagendaposter": {
|
||||
"str": "removed agendaposter theme from {self.target_link}",
|
||||
"str": "removed chud theme from {self.target_link}",
|
||||
"icon": "fa-user-slash",
|
||||
"color": "bg-success",
|
||||
},
|
||||
|
|
|
@ -400,8 +400,8 @@ AWARDS = {
|
|||
},
|
||||
"agendaposter": {
|
||||
"kind": "agendaposter",
|
||||
"title": "Rightoid",
|
||||
"description": "Forces the rightoid theme on the recipient for 24 hours.",
|
||||
"title": "Chud",
|
||||
"description": "Forces the chud theme on the recipient for 24 hours.",
|
||||
"icon": "fas fa-snooze",
|
||||
"color": "text-purple",
|
||||
"price": 2500
|
||||
|
|
|
@ -727,7 +727,7 @@ def agendaposter(user_id, v):
|
|||
|
||||
g.db.commit()
|
||||
if user.agendaposter: return redirect(user.url)
|
||||
return {"message": "Agendaposter theme disabled!"}
|
||||
return {"message": "Chud theme disabled!"}
|
||||
|
||||
|
||||
@app.post("/shadowban/<user_id>")
|
||||
|
|
|
@ -173,7 +173,7 @@ def front_all(v):
|
|||
if v.agendaposter_expires_utc and v.agendaposter_expires_utc < time.time():
|
||||
v.agendaposter_expires_utc = 0
|
||||
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)
|
||||
badge = v.has_badge(26)
|
||||
if badge: g.db.delete(badge)
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<li><a href="/admin/users">Users Feed</a></li>
|
||||
<li><a href="/admin/shadowbanned">Shadowbanned 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>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -255,9 +255,9 @@
|
|||
<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="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>
|
||||
<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>
|
||||
|
||||
|
@ -540,9 +540,9 @@
|
|||
<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="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>
|
||||
<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>
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ INSERT INTO public.badge_defs VALUES
|
|||
(23,'Landchad','Contributed at least $20'),
|
||||
(24,'Terminally online turboautist','Contributed at least $50'),
|
||||
(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'),
|
||||
(60,'Unironically Retarded','Demonstrated a wholesale inability to read the room'),
|
||||
(61,'Lab Rat','Helped test features in development'),
|
||||
|
|
Loading…
Reference in New Issue