forked from MarseyWorld/MarseyWorld
fdsfsd
parent
b03f2066ee
commit
ababa11721
|
@ -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",
|
||||
},
|
||||
|
|
|
@ -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>")
|
||||
|
|
Loading…
Reference in New Issue