This commit is contained in:
Aevann1 2021-09-21 21:07:12 +02:00
parent 4e7afa4645
commit 4cef72c2ec
2 changed files with 4 additions and 4 deletions

View file

@ -220,12 +220,12 @@ ACTIONTYPES={
"color": "bg-muted", "color": "bg-muted",
}, },
"club":{ "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", "icon":"fa-eye-slash",
"color": "bg-danger", "color": "bg-danger",
}, },
"unclub":{ "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", "icon":"fa-eye",
"color": "bg-muted", "color": "bg-muted",
}, },

View file

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