This commit is contained in:
Aevann1 2021-10-20 23:06:25 +02:00
parent f8bb7a99be
commit fd655eadec
12 changed files with 105 additions and 31 deletions

View file

@ -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
},
}

View file

@ -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

View file

@ -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":{

View file

@ -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):