fsd
This commit is contained in:
parent
f8bb7a99be
commit
fd655eadec
12 changed files with 105 additions and 31 deletions
|
@ -48,6 +48,14 @@ if site_name == "Drama":
|
|||
"color": "text-pink",
|
||||
"price": 500
|
||||
},
|
||||
"pin": {
|
||||
"kind": "pin",
|
||||
"title": "1-Hour Pin",
|
||||
"description": "Pins the post.",
|
||||
"icon": "fas fa-thumbtack",
|
||||
"color": "text-warning",
|
||||
"price": 750
|
||||
},
|
||||
}
|
||||
else:
|
||||
AWARDS = {
|
||||
|
@ -74,7 +82,15 @@ else:
|
|||
"icon": "fas fa-train",
|
||||
"color": "text-pink",
|
||||
"price": 500
|
||||
}
|
||||
},
|
||||
"pin": {
|
||||
"kind": "pin",
|
||||
"title": "1-Hour Pin",
|
||||
"description": "Pins the post.",
|
||||
"icon": "fas fa-thumbtack",
|
||||
"color": "text-warning",
|
||||
"price": 750
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ class Comment(Base):
|
|||
senttouser = relationship("User", primaryjoin="User.id==Comment.sentto", viewonly=True)
|
||||
parent_comment = relationship("Comment", remote_side=[id], viewonly=True)
|
||||
child_comments = relationship("Comment", remote_side=[parent_comment_id], viewonly=True)
|
||||
#awards = relationship("AwardRelationship", viewonly=True)
|
||||
awards = relationship("AwardRelationship", viewonly=True)
|
||||
|
||||
awards = None
|
||||
|
||||
|
|
|
@ -175,22 +175,22 @@ ACTIONTYPES={
|
|||
},
|
||||
"pin_comment":{
|
||||
"str":'pinned a {self.target_link}',
|
||||
"icon":"fa-thumbtack fa-rotate--45",
|
||||
"icon":"fa-thumbtack",
|
||||
"color": "bg-info",
|
||||
},
|
||||
"unpin_comment":{
|
||||
"str":'un-pinned a {self.target_link}',
|
||||
"icon":"fa-thumbtack fa-rotate--45",
|
||||
"icon":"fa-thumbtack",
|
||||
"color": "bg-muted",
|
||||
},
|
||||
"pin_post":{
|
||||
"str":'pinned post {self.target_link}',
|
||||
"icon":"fa-thumbtack fa-rotate--45",
|
||||
"icon":"fa-thumbtack",
|
||||
"color": "bg-success",
|
||||
},
|
||||
"unpin_post":{
|
||||
"str":'un-pinned post {self.target_link}',
|
||||
"icon":"fa-thumbtack fa-rotate--45",
|
||||
"icon":"fa-thumbtack",
|
||||
"color": "bg-muted",
|
||||
},
|
||||
"set_nsfw":{
|
||||
|
|
|
@ -64,7 +64,15 @@ if site_name == "Drama":
|
|||
"icon": "fas fa-train",
|
||||
"color": "text-pink",
|
||||
"price": 500
|
||||
}
|
||||
},
|
||||
"pin": {
|
||||
"kind": "pin",
|
||||
"title": "1-Hour Pin",
|
||||
"description": "Pins the post.",
|
||||
"icon": "fas fa-thumbtack",
|
||||
"color": "text-warning",
|
||||
"price": 750
|
||||
},
|
||||
}
|
||||
else:
|
||||
AWARDS = {
|
||||
|
@ -91,7 +99,15 @@ else:
|
|||
"icon": "fas fa-train",
|
||||
"color": "text-pink",
|
||||
"price": 500
|
||||
}
|
||||
},
|
||||
"pin": {
|
||||
"kind": "pin",
|
||||
"title": "1-Hour Pin",
|
||||
"description": "Pins the post.",
|
||||
"icon": "fas fa-thumbtack",
|
||||
"color": "text-warning",
|
||||
"price": 750
|
||||
},
|
||||
}
|
||||
|
||||
class User(Base):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue