master
Aevann1 2021-09-21 21:07:12 +02:00
parent b03f2066ee
commit ababa11721
2 changed files with 4 additions and 4 deletions

View File

@ -220,12 +220,12 @@ ACTIONTYPES={
"color": "bg-muted",
},
"club":{
"str": 'marked post {self.target_link} as viewable to users with +150 coins only',
"str": 'marked post {self.target_link} as club-only',
"icon":"fa-eye-slash",
"color": "bg-danger",
},
"unclub":{
"str": 'unmarked post {self.target_link} as viewable to users with +150 coins only',
"str": 'unmarked post {self.target_link} as club-only',
"icon":"fa-eye",
"color": "bg-muted",
},

View File

@ -48,8 +48,8 @@ def toggle_club(pid, v):
g.db.commit()
if post.club: return {"message": "Post has been marked as +150-coins only!"}
else: return {"message": "Post has been unmarked as +150-coins only!"}
if post.club: return {"message": "Post has been marked as club-only!"}
else: return {"message": "Post has been unmarked as club-only!"}
@app.post("/publish/<pid>")