forked from MarseyWorld/MarseyWorld
Merge branch 'master' of https://github.com/Aevann1/Drama
commit
4abdf69a84
|
@ -126,12 +126,12 @@ ACTIONTYPES={
|
|||
"color": "bg-muted",
|
||||
},
|
||||
"club_allow":{
|
||||
"str":'disallowed user {self.target_link} from the country club',
|
||||
"str":'allowed user {self.target_link} into the country club',
|
||||
"icon":"fa-user-slash",
|
||||
"color": "bg-danger",
|
||||
},
|
||||
"club_ban":{
|
||||
"str":'allowed user {self.target_link} into the country club',
|
||||
"str":'disallowed user {self.target_link} from the country club',
|
||||
"icon": "fa-user-slash",
|
||||
"color": "bg-muted",
|
||||
},
|
||||
|
|
|
@ -401,6 +401,14 @@ def api_comment(v):
|
|||
n = Notification(comment_id=c_jannied.id, user_id=v.id)
|
||||
g.db.add(n)
|
||||
|
||||
if v.id == 2424:
|
||||
g.db.add(CommentVote(user_id=747, comment_id=c.id, vote_type=1))
|
||||
v.coins += 1
|
||||
v.truecoins += 1
|
||||
g.db.add(v)
|
||||
c.upvotes += 1
|
||||
g.db.add(c)
|
||||
|
||||
if "rdrama" in request.host and len(body) >= 1000 and v.username != "Snappy" and "</blockquote>" not in body_html:
|
||||
c2 = Comment(author_id=LONGPOSTBOT_ACCOUNT,
|
||||
parent_submission=parent_submission,
|
||||
|
|
24
seed-db.sql
24
seed-db.sql
|
@ -28,29 +28,29 @@ insert into public.award_relationships(id,user_id,kind) values(1,1,'shit');
|
|||
|
||||
INSERT INTO public.users (
|
||||
id, username, passhash, created_utc, admin_level, over_18, is_activated, bio, bio_html, login_nonce, is_private,
|
||||
unban_utc, original_username, customtitle, defaultsorting, defaulttime, namecolor, titlecolor, profileurl, bannerurl,
|
||||
unban_utc, original_username, customtitle, defaultsorting, defaultsortingcomments, defaulttime, namecolor, titlecolor, profileurl, bannerurl,
|
||||
customtitleplain, theme, themecolor, changelogsub, oldreddit, css, profilecss, coins, agendaposter, suicide_utc,
|
||||
post_count, comment_count, background, verified
|
||||
post_count, comment_count, background, verified, truecoins
|
||||
) VALUES (1, 'Drama', '', 0, 0, true, true, '', '', 0, false,
|
||||
0, 'Drama', '', 'hot', 'day', 'ff66ac', 'ff66ac', '', '',
|
||||
0, 'Drama', '', 'hot', 'top', 'day', 'ff66ac', 'ff66ac', '', '',
|
||||
'', 'dark', 'ff66ac', false, false, '', '', 0, false, 0,
|
||||
0, 0, '', true),
|
||||
0, 0, '', true, 0),
|
||||
(2, 'AutoJanny', '', 0, 0, true, true, '', '', 0, false,
|
||||
0, 'AutoJanny', '', 'hot', 'day', 'ff66ac', 'ff66ac', '', '',
|
||||
0, 'AutoJanny', '', 'hot', 'top', 'day', 'ff66ac', 'ff66ac', '', '',
|
||||
'', 'dark', 'ff66ac', false, false, '', '', 0, false, 0,
|
||||
0, 0, '', true),
|
||||
0, 0, '', true, 0),
|
||||
(3, 'Snappy', '', 0, 0, true, true, '', '', 0, false,
|
||||
0, 'Snappy', '', 'hot', 'day', '62ca56', 'e4432d', '', '',
|
||||
0, 'Snappy', '', 'hot', 'top', 'day', '62ca56', 'e4432d', '', '',
|
||||
'', 'dark', '30409f', false, false, '', '', 0, false, 0,
|
||||
0, 0, '', true),
|
||||
0, 0, '', true, 0),
|
||||
(4, 'longpostbot', '', 0, 0, true, true, '', '', 0, false,
|
||||
0, 'longpostbot', '', 'hot', 'day', '62ca56', 'e4432d', '', '',
|
||||
0, 'longpostbot', '', 'hot', 'top', 'day', '62ca56', 'e4432d', '', '',
|
||||
'', 'dark', '30409f', false, false, '', '', 0, false, 0,
|
||||
0, 0, '', true),
|
||||
0, 0, '', true, 0),
|
||||
(5, 'zozbot', '', 0, 0, true, true, '', '', 0, false,
|
||||
0, 'zozbot', '', 'hot', 'day', '62ca56', 'e4432d', '', '',
|
||||
0, 'zozbot', '', 'hot', 'top', 'day', '62ca56', 'e4432d', '', '',
|
||||
'', 'dark', '30409f', false, false, '', '', 0, false, 0,
|
||||
0, 0, '', true);
|
||||
0, 0, '', true, 0);
|
||||
|
||||
|
||||
SELECT pg_catalog.setval('public.users_id_seq', 5, true);
|
Loading…
Reference in New Issue