Commit Graph

4222 Commits (4538f5642f3b43f5f6453f03f8b5814972d87737)

Author SHA1 Message Date
Aevann1 3cd0878d0a fix redirect bug 2022-07-10 14:09:03 +02:00
Aevann1 0ebd721884 fix WPD sorting 2022-07-10 12:07:11 +02:00
Aevann1 c214d4b7cc change sorting logic for WPD 2022-07-10 11:29:55 +02:00
Snakes fde2d5ca11 LGB: Use static default pfp. 2022-07-09 07:11:05 -04:00
Aevann1 f3fbb5c743 sneed 2022-07-09 13:07:43 +02:00
Aevann1 8590456eaa Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-09 12:32:52 +02:00
Aevann1 ec3b4357cf refactor sorting and time filter 2022-07-09 12:32:49 +02:00
Snakes 0fbb102929 Propagate shadows to new alts on signup. 2022-07-09 05:25:15 -04:00
Aevann1 382df30e1f show ALL timestamps in user's timezone + move scripts to the bottom of HTML templates to mimic rocketloader's behavior on localhost (for testing) 2022-07-09 10:35:47 +02:00
Aevann1 99f0cb7742 strip embed_url 2022-07-09 09:41:05 +02:00
Snakes 02e096e5af LGB: add custom emoji list. 2022-07-09 00:32:48 -04:00
Snakes 3416ed76e4 Increase rate-limit on /del_report/. 2022-07-08 20:46:44 -04:00
Aevann1 38f6a6f81d remove special timefilter condition for "bump" sorting 2022-07-08 21:49:27 +02:00
Aevann1 683c9c7bdd fix lingering notifications 2022-07-08 21:42:40 +02:00
Aevann1 f298d134ac make "clear all notifications" button also clear post notifs 2022-07-08 21:33:26 +02:00
Aevann1 65a98cd9fc dont show notifications for posts the user himself makes in a hole they follow 2022-07-08 21:14:04 +02:00
Aevann1 19ee55d27c fix post notifications not being visible 2022-07-08 21:11:56 +02:00
Aevann1 939861e1a0 fix 500 error 2022-07-08 21:10:01 +02:00
Aevann1 a8fe49f232 kitchen sink commit, all over the place 2022-07-08 21:03:04 +02:00
Aevann1 c380848d47 remove leftover code from ill-fated joinedload attempt 2022-07-08 20:28:56 +02:00
Aevann1 a64736d9fb get voting status on posts in /notifications/posts 2022-07-08 20:28:27 +02:00
Aevann1 9abd2cc508 dont show deleted and removed posts in /notifications/posts 2022-07-08 20:27:42 +02:00
Aevann1 ad1273995d notifications rework 2022-07-08 20:06:54 +02:00
Aevann1 cfa6c13eaa move 2 cron functions from routes files to .cron 2022-07-08 18:21:39 +02:00
Aevann1 83a931343e uncomment rss feed 2022-07-08 18:21:20 +02:00
Aevann1 b617321529 move all env-getting to .const 2022-07-08 18:21:13 +02:00
Aevann1 e34f1a1c15 Revert "testing bandwidth"
This reverts commit d6559471b7.
2022-07-08 17:13:37 +02:00
Aevann1 d6559471b7 testing bandwidth 2022-07-08 17:05:08 +02:00
Aevann1 c23366843e fix 500 error on posting 2022-07-08 14:40:07 +02:00
Aevann1 18385f80a1 make snappy only comment on drafts when they're published 2022-07-08 13:44:17 +02:00
Aevann1 b9d6f796a3 return 404 on shadowbanned comments when linking to them 2022-07-08 13:13:59 +02:00
Aevann1 747ccf5dab don't count deleted posts and comments 2022-07-08 13:07:27 +02:00
Snakes a3f94a77f3 Fix comment /votes/ 500 when no upvoters. 2022-07-07 19:53:28 -04:00
Aevann1 887d521f4a Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-07 07:14:41 +02:00
Aevann1 7cd1e4bf8f give chadmins marseybux 2022-07-07 07:14:39 +02:00
Snakes 6ad935e12a Permission flags UI visibility; start PERMS dict.
Original work started for WPD and LGB, who wish to restrict flags
visibility in the UI based on admin_level. To support this change and
upcoming changes, `const.PERMS: string -> int` was created.
Potentially targetting a future design where Permissions is a proper
business object integrated with the User model; however, for now just
looking toward getting admin_level magic numbers centralized.

This commit applies PERMS to: create_hole, flags visibility in UI,
flag removal in UI & backend. Flag visibility in Comment & Submission
json_raw methods is unaffected to avoid needing a user object to
build the JSON.
2022-07-06 23:45:33 -04:00
Aevann1 470b046702 compile regext outside of routes 2022-07-06 13:49:13 +02:00
Aevann1 4ba413eaa9 Revert "Revert "remove all joinedload bullshit I added""
This reverts commit 4057711c83.
2022-07-06 13:08:11 +02:00
Aevann1 742a3698ea fix my vote being above OP's vote 2022-07-06 13:00:28 +02:00
Aevann1 4057711c83 Revert "remove all joinedload bullshit I added"
This reverts commit c8d5eb0f57.
2022-07-06 12:58:44 +02:00
Aevann1 364c8eca4f Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-07-06 12:56:43 +02:00
Aevann1 05b70969e5 trying to fix WPD's issue 2022-07-06 12:56:39 +02:00
Snakes 95f9fbfab1 Add searching for "exact phrases" to search. 2022-07-04 04:19:41 -04:00
Aevann1 67dff25a5a fix previous commit 2022-07-04 09:05:14 +02:00
Aevann1 c8d5eb0f57 remove all joinedload bullshit I added 2022-07-04 09:04:14 +02:00
Aevann1 09be0394cd fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2244925?context=8#context 2022-07-04 06:07:51 +02:00
Aevann1 1136683a14 actually fix the followers pages 2022-07-04 05:41:44 +02:00
Aevann1 4ccead8439 Revert "refactor "view more comments""
This reverts commit 68da93ec02.
2022-07-04 05:37:48 +02:00
Aevann1 9d0b53ad54 fix /followers and /following being empty 2022-07-04 04:59:24 +02:00
Aevann1 ed02d7572a rename "frontpage" to "main feed" in move_hole mod action 2022-07-04 04:54:03 +02:00
Aevann1 35e2e12e24 OPs can now rehole their posts 2022-07-04 04:19:43 +02:00
Snakes 9e1a3be278 Fix DMs improperly treating all users as blocked.
The changes to helpers/get.py @ get_user(...) in a6b7fed2fc resulted
in `is_blocking` no longer being present on all User objects retrieved
via `get_user`. This triggered a latent identifier shadow where the
property method `User.is_blocking` on the User model caused checks for
blocks on objects retrieved via `get_user` to always return True.

Notably: when the get_user return value left `is_blocking` unset and
thus implied False, the following expression yielded True due to the
presence of the first-class function at the same identifier:

    hasattr(user, 'is_blocking') and user.is_blocking
2022-07-03 13:55:25 -04:00
Snakes ed42f14a77 Fix frontlist failing on pin expiry.
Proximate cause of 500 error on frontpage is that `Query` has no
such method `remove(...)`. Merely removing the line can't guarantee
identical logic, but I'm not quite clear if explicit removal from the
Query pseudo-collection is necessary, or if the final `pins` variable
after `Query.all()` will be appropriately filtered. It appears to
work right in practice, and the risk of expired pins persisting for
one extra pageload for only one user seems relatively minor.
2022-07-03 13:04:13 -04:00
Aevann1 a6b7fed2fc minor logic change in /@username 2022-07-03 14:12:33 +02:00
Aevann1 9607cb7a55 fix 500 error 2022-07-03 13:58:46 +02:00
Aevann1 ed86ec1c14 more query optimization v3 2022-07-03 13:56:40 +02:00
Aevann1 72884713ac more quert optimization 2022-07-03 13:21:58 +02:00
Aevann1 eef026be1e don't query comments we won't use 2022-07-03 12:20:43 +02:00
Aevann1 68da93ec02 refactor "view more comments" 2022-07-03 11:11:18 +02:00
Aevann1 1f0f0ef0be messing with joins 2022-07-03 08:12:53 +02:00
Aevann1 c8b4838157 unmessing with queries 2022-07-03 06:34:29 +02:00
Aevann1 91951ed142 messing with relationships 2022-07-03 06:27:48 +02:00
Aevann1 6c5b5a5314 add a "subscribed" tab in ur profile page to show posts u subscribed to 2022-07-03 04:43:49 +02:00
Aevann1 ab2d9b492d add "warm" sorting - exact same as hot but pinned posts are shown in their normal positions instead of the top 2022-07-03 04:40:57 +02:00
Snakes 33815d8365 Add badge for Checkmark award users. 2022-07-02 21:34:32 -04:00
Aevann1 bce4c13043 kitchen sink commit, all over the place 2022-07-02 12:44:05 +02:00
Aevann1 a37e6cc50f upvote more holes 2022-07-02 12:03:10 +02:00
Aevann1 b0d4465183 add child comments to joinedload 2022-07-02 11:59:26 +02:00
Aevann1 7cb95ee2ca delete migration cod 2022-07-02 11:58:16 +02:00
Aevann1 667a195270 migrating 2022-07-02 11:52:18 +02:00
Aevann1 855fc20a2a testing 2022-07-02 11:46:51 +02:00
Aevann1 24484df55c testing 2022-07-02 11:38:09 +02:00
Aevann1 29b91a3b8a fds 2022-07-02 11:33:53 +02:00
Aevann1 b6ca73a0c5 testing 2022-07-02 11:30:17 +02:00
Aevann1 bc41bb5584 testing, pls ignore 2022-07-02 11:29:01 +02:00
Aevann1 1a0b2b6813 fix 500 errors 2022-07-02 08:51:19 +02:00
Aevann1 d0d15c319a Poll rework (#312)
* poll rework

* forgot to do joinedload on comments

* Fix logic errors with voting, SQL syntax.

Kitchen sink commit from review of poll-rework changes:
  1. Fix seed-db.sql syntax error.
  2. Fix SQL patch file duplication of *submissions* tables rather
     than one set of submissions and one for comments.
  3. Start makeshift SQL patch folder, since this is a large change
     that contributors may wish to apply to their local instances.
  4. Fix checkbox (non-`exclusive`) polls being unable to be
     unchecked. For consistency with `exclusive` polls, they should.
  5. Fix changing the option of an `exclusive` poll when both
     exclusive and non-exclusive options are present in one comment/
     post causing the non-exclusive options to become unchecked.
     (which, by my reading of SQLAlchemy `Query.one_or_none()`
     really could break quite badly in some cases).

* link relationships with their counterparts

* small modification to poll unchecking

Co-authored-by: TLSM <duolsm@outlook.com>
2022-07-02 08:48:04 +02:00
Aevann1 28786342dc fix snappy archiving images 2022-07-02 02:25:58 +02:00
Aevann1 100677c1bb fix 500 error 2022-07-02 01:18:41 +02:00
Aevann1 f56be06eb8 add hole pinning 2022-07-02 01:11:48 +02:00
Aevann1 3801189188 fix 2022-07-01 23:24:58 +02:00
Aevann1 d59f346f0b 1 less request, 1 less transaction, 1 less query 2022-07-01 23:10:48 +02:00
Aevann1 bc12edb5b9 add exception for chadmins 2022-07-01 22:22:10 +02:00
Aevann1 f10a858ea8 fix cron 2022-07-01 22:16:45 +02:00
Aevann1 25e594d673 Revert "no longer stop reposts from being posted"
This reverts commit 19e6e7f4d9.
2022-07-01 20:29:12 +02:00
Aevann1 7a682d95c6 fix 500 error 2022-07-01 20:19:21 +02:00
Aevann1 9ffc3015e2 testing 2022-07-01 20:09:56 +02:00
Aevann1 e8f5827c5e more testing 2022-07-01 15:34:11 +02:00
Aevann1 a917537c5f testing bandwidth 2022-07-01 15:28:22 +02:00
Aevann1 5bbd14ebd6 testing 2022-07-01 15:11:41 +02:00
Aevann1 5c6ce5e1d7 try to figure out what caused bandwidth spike 2022-07-01 14:09:41 +02:00
Aevann1 2c54180ddc remove print statement I forgot 2022-07-01 13:28:00 +02:00
Aevann1 ae837e50a3 try fixing insane inbound bandwidth 2022-07-01 13:27:37 +02:00
Aevann1 c2b892af04 search comments within a specific thread 2022-07-01 13:11:23 +02:00
Aevann1 fe173398fc make me autoupvote posts in /h/slackernews and /h/space 2022-07-01 12:41:26 +02:00
Aevann1 605dc96cc7 remoev testing shit 2022-07-01 03:57:01 +02:00
Aevann1 d667472212 to devrama 2022-07-01 03:39:05 +02:00
Aevann1 8c246e5678 separate large numbers by value in /votes 2022-07-01 01:42:55 +02:00
Aevann1 1362278cb4 add more data for jannies in /votes page (will use that in polls) 2022-07-01 01:39:09 +02:00
Aevann1 d9844231c7 fix replies to modmail not notifying the sender 2022-07-01 00:41:11 +02:00
Aevann1 0c51979cbf remove frontpage exploit 2022-06-30 17:24:05 +02:00
Snakes 467eb4408a Fix hole_entered notif username.
Previously, the on_post_hole_entered notifs to hole followers would
contain the username of the admin who moved the post (due to
referencing the	`v` parameter of whomever performed the action which
placed the post in the hole). This has been corrected to use the post
author instead. Further, on_post_hole_entered only depends on a post
for behavior, though the optional `v` user is used if present.
2022-06-30 05:36:45 -04:00
Snakes f0c9a97fda Suppress notifs for posts from shadowed. 2022-06-29 16:38:59 -04:00
Aevann1 070945d98a cut down on the number of queries 2022-06-29 09:22:18 +02:00
Aevann1 5661cdb271 Revert "try to cut down on number of db queries"
This reverts commit c674c6a056.
2022-06-29 08:43:20 +02:00
Aevann1 c674c6a056 try to cut down on number of db queries 2022-06-29 08:14:25 +02:00
Aevann1 c341be2866 show posts by users who block you 2022-06-29 05:07:00 +02:00
Aevann1 0710ea02ac fix repost-checking for search URLs 2022-06-29 03:50:55 +02:00
Aevann1 19e6e7f4d9 no longer stop reposts from being posted
(just give the warning and that's it)
2022-06-29 03:37:44 +02:00
Aevann1 b602a66dd6 fix issue with text exceeding character count despite not exceeding it 2022-06-29 03:13:11 +02:00
Aevann1 8f9d982104 fix posting 2022-06-29 02:45:51 +02:00
Aevann1 8d4f25de44 Revert "my OCD doesn't like unused code"
This reverts commit 7c80ea91c8.
2022-06-29 01:36:40 +02:00
Aevann1 9b45220542 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-29 01:35:00 +02:00
Aevann1 cf42c9c501 do this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2209654?context=8#context 2022-06-29 01:34:57 +02:00
Aevann1 7c80ea91c8 my OCD doesn't like unused code 2022-06-29 01:33:31 +02:00
Snakes 159af40cfe Fix /bet route not enforcing exclusive votes. 2022-06-28 03:43:16 -04:00
Aevann1 7e7450ef33 Made it possible to downvote poll options again
for schizocel my beloved
2022-06-28 09:20:29 +02:00
Snakes 08c2ec7223 Make pin disabling site-specific. 2022-06-28 02:27:25 -04:00
Aevann1 61d0c34b05 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-28 06:51:37 +02:00
Aevann1 8ba9aab351 fix WPD's bug 2022-06-28 06:51:34 +02:00
Snakes b50151e120 Commit db txn on comment spam 403. 2022-06-27 23:22:38 -04:00
Aevann1 4a1359713f use the variable "poll_bots" 2022-06-28 04:00:28 +02:00
Aevann1 cbbd361197 fix rehab award 2022-06-28 03:39:55 +02:00
Aevann1 d4d53d57d0 disable pinning comments too 2022-06-28 03:34:17 +02:00
Aevann1 aac17a6daa show the username of the janny who banned 2022-06-28 02:59:08 +02:00
Aevann1 bb9d842f81 disable progressive stack too 2022-06-28 02:28:59 +02:00
Aevann1 d10a1c8693 disable pinning for 3 days 2022-06-28 02:24:16 +02:00
Aevann1 79479d9ffd make it so u dont get pinged by ur own comment on a subscribed thread 2022-06-27 21:13:19 +02:00
Aevann1 75bdbed7f9 reduce initial viewmore threshold for poorcels 2022-06-27 21:08:05 +02:00
Aevann1 a0cb5874cc refactor push notifs 2022-06-27 21:02:24 +02:00
Aevann1 d31d6b8617 restore push notifs 2022-06-27 20:42:41 +02:00
Aevann1 41b7b1298e add logic for 100 marseys badge 2022-06-27 06:42:39 +02:00
Aevann1 52a8a219ae make poorcel-mode device-specific 2022-06-27 05:46:32 +02:00
Aevann1 38358cafe4 make publishing a draft reload the page instead of going to the post 2022-06-27 04:34:15 +02:00
Aevann1 6ff420e338 add a public list of poorcels 2022-06-27 04:21:34 +02:00
Aevann1 b1ef8e4c62 add poorcel mode 2022-06-27 04:14:53 +02:00
Aevann1 785cea9c4c fix 500 eror on signup 2022-06-27 02:49:30 +02:00
Aevann1 f48b16d0ca make it so when u make a comment with polls, you see the polls immediately
(instead of needing to refresh)
2022-06-27 00:32:32 +02:00
Aevann1 52e0f21c75 make /h/braincels jannies unable to exile ppl 2022-06-26 23:34:09 +02:00
Aevann1 58867084af temporarily disable push notifs to get rid of console spam 2022-06-26 23:04:11 +02:00
Aevann1 e7ce39bd80 fix poll-voting 2022-06-26 22:53:12 +02:00
Snakes e0c3c79902 WPD: Require flairs on all posts. 2022-06-26 03:42:56 -04:00
Snakes cd556b6d8e Refactor UI name of hole/sub to constant. 2022-06-26 03:41:28 -04:00
Snakes 13ceb8818d Commit txn in /notifications (by @Aevann1). 2022-06-26 03:01:01 -04:00
Aevann1 e022b29ef6 rework custom css a little 2022-06-26 07:26:45 +02:00
Aevann1 e36adb5bf4 reduce query volume, badge edition 2022-06-26 07:11:25 +02:00
Aevann1 74978bfbf7 Revert "put custom CSS into HTML templates"
This reverts commit 19c82b7ea1.
2022-06-26 07:07:28 +02:00
Aevann1 49e39b94bc fix signups 2022-06-26 07:03:30 +02:00
Aevann1 19c82b7ea1 put custom CSS into HTML templates 2022-06-26 06:33:41 +02:00
Aevann1 3b8188fd67 fixed version of d83d47e280 2022-06-26 03:22:05 +02:00
Aevann1 a1b137447e Revert "reduce query volume #1"
This reverts commit d83d47e280.
2022-06-26 03:12:31 +02:00
Aevann1 cff34fb3a4 reducing query volume, #2 2022-06-26 03:11:02 +02:00
Aevann1 d83d47e280 reduce query volume #1 2022-06-26 02:50:47 +02:00
Aevann1 bc7185b5af order awards by the time they were awarded 2022-06-25 22:33:51 +02:00
Aevann1 c1d227e2b6 exclude poll bots from "simps for" lists 2022-06-25 22:24:47 +02:00
Aevann1 af680d8a94 make it whenever a post has "thread" (instead of "megathread") in the title, the comments are ordered by new 2022-06-25 21:55:29 +02:00
Aevann1 7a402d2449 order pins by new 2022-06-25 21:54:18 +02:00
Aevann1 f415b469de Revert "Exclude self-votes from user vote summaries totals."
This reverts commit 69482aed3a.
2022-06-25 17:41:36 +02:00
Snakes 69482aed3a Exclude self-votes from user vote summaries totals.
The user routes upvoters, downvoters, upvoting, and downvoting
now exclude self-votes from the summary totals.

Also, the diff touches a number of other lines where the local
variable `id` was renamed to `uid` for semantic clarity.
2022-06-25 02:00:09 -04:00
Aevann1 59302696f6 remove 150 truescore requirement on discord 2022-06-25 04:00:49 +02:00
Aevann1 56a317bb56 "Bux" to "Marseybux" 2022-06-25 03:54:23 +02:00
Aevann1 6dcf3fde2d reduce viewmore threshold to 100 again 2022-06-25 02:18:06 +02:00
Aevann1 ffd0d9ed31 show duration on ban icon tooltip 2022-06-25 02:11:00 +02:00
Aevann1 d59a80245d add total counter for simps, haters, simping for, hates 2022-06-25 01:22:20 +02:00
Aevann1 2e8fb4ac07 sneed 2022-06-25 00:27:42 +02:00
Aevann1 5ce276854d remove the 1wk edit limit for posts, but keep it for comments 2022-06-25 00:21:37 +02:00
Aevann1 cbdf3f0a18 fix snappy 2022-06-24 22:52:38 +02:00
Aevann1 a2a9c2666d make sure snappy's comment body doesnt get above 10k characters 2022-06-24 20:10:28 +02:00
Aevann1 c5c21da76f validate colors 2022-06-24 19:32:31 +02:00
Aevann1 743ac90f08 fix 500 error 2022-06-24 18:15:37 +02:00
Aevann1 f34c4e1196 stop using app.config for our own stuff 2022-06-24 17:08:57 +02:00
Aevann1 9593dc58dd move regex from helpers.const into its own helper file 2022-06-24 16:30:59 +02:00
Aevann1 6a6f52f4ee increase "view more" threshold 2022-06-24 16:11:00 +02:00
Aevann1 5d98f1095d actually use the get functions, v2 2022-06-24 15:21:05 +02:00
Aevann1 6f6d01c1c6 actually use the get functions 2022-06-24 15:19:53 +02:00
Aevann1 69d247c433 revert autoupvoting posts 2022-06-24 07:12:17 +02:00
Aevann1 b3980660c1 fix leaderboard bug for badges 2022-06-24 02:29:13 +02:00
Aevann1 6803d83af4 fix wrong template being shown on error when changing colors 2022-06-24 00:22:41 +02:00
Aevann1 43836652e0 double viewmore threshold on old threads 2022-06-23 21:47:00 +02:00
Snakes 532b248847 Extend 'hole' search operator to comments. 2022-06-23 02:11:03 -04:00
Aevann1 0c5ddeb1f7 make me autovote on all posts in subs 2022-06-23 03:03:28 +02:00
Aevann1 c5dffd3368 double viewmore threshold 2022-06-23 02:37:03 +02:00
Aevann1 175b63c02c double "view more" button threshold 2022-06-23 00:51:41 +02:00
Snakes 36d24cf213 Refactor hole follow notifs to encapsulate.
Fixes bug where admins moving a post into a hole doesn't notify
followers of the destination hole.

Also, we now have a route endpoint for reholing that is potentially
usable for e.g. an actual post_actions button to rehole, rather than
the report command UI at present.
2022-06-22 17:21:12 -04:00
Aevann1 0f0a07204c fix 500 errors 2022-06-22 22:42:19 +02:00
Aevann1 10a47ca837 refactor sorting posts 2022-06-22 21:57:57 +02:00
Aevann1 8ecb4582d0 refactor sorting comments 2022-06-22 21:50:20 +02:00
Aevann1 f6bb11bdc2 make so it post subscription only give notifs to top-level comments 2022-06-22 20:05:56 +02:00
Aevann1 414eb12410 add poll_thread 2022-06-22 20:01:00 +02:00
Aevann1 91d7725997 make me autoupvote posts in slackernews 2022-06-22 18:28:59 +02:00
Aevann1 0b2d0a981d fix broken images 2022-06-22 17:54:25 +02:00
Aevann1 20585ca543 add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes) 2022-06-22 17:51:19 +02:00
Snakes 79ced3816c Add 'hole' search operator. 2022-06-22 02:35:50 -04:00
Snakes dedbc02968 Allow admin approval of others' TLM-less chudposts. 2022-06-21 21:13:25 -04:00
Aevann1 cc3feaffe3 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-21 16:34:55 +02:00
Aevann1 838afa93e8 stop my autoupvote 2022-06-21 16:34:50 +02:00
Snakes f7a59f4672 Make search operators case insensitive.
In light of the fact that all searching against the database is done
using ILIKE pattern matching, the only truly case-sensitive part of
the search query was search operator keys. Rather than lowercase the
keys in `criteria` before returning, we instead lowercase the entire
search string at the beginning of parsing. This will further enforce
case-insensitivity on the design of search going forward.
2022-06-21 01:31:31 -04:00
Snakes e2cd25db67 WPD: limit hole creation to JL2+. 2022-06-21 01:20:21 -04:00
Snakes f6b6997f61 Persist activity timestamp to users. 2022-06-20 16:25:03 -04:00
Snakes e212eb567d Exclude comments on drafts from edit limit.
Draft posts have already been excluded from the edit time limit for
obvious reasons--drafts are intended to be edited, and people use them
as personal megathreads on their profiles. Largely for the latter
use case, this commit also excludes comments on drafts from the limit.
2022-06-20 07:39:45 -04:00
Aevann1 c91f09b83f put author username in mod action notifs 2022-06-20 01:08:21 +02:00
Aevann1 ccd4dfa6ee fix my upsoren being added before OP's upsoren 2022-06-19 23:40:07 +02:00
Aevann1 17c7529977 add ceiling to link boost 2022-06-19 23:38:25 +02:00
Aevann1 fa2681c886 fix for fae784336 2022-06-19 19:49:22 +02:00
Aevann1 17c3fe9e4c make me auto-upvote all posts in holes 2022-06-19 19:45:48 +02:00
Aevann1 96163b17bb fix bug that made ppl unable to post images 2022-06-19 19:31:59 +02:00
Aevann1 14ffb39ba6 increase edit_comment ratelimit 2022-06-19 19:16:18 +02:00
Aevann1 d9cdbd0015 return to only allowing images/videos/audio 2022-06-19 18:56:45 +02:00
Aevann1 06677d269e refactor process_video 2022-06-19 16:49:44 +02:00
Snakes eb8b85eb09 Exclude drafts from edit limit. 2022-06-19 02:10:37 -04:00
Aevann1 214d863ff3 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-19 01:55:47 +02:00
Aevann1 f1f30635b2 hide deleted posts and comments from userpages (frequently requested) 2022-06-19 01:55:45 +02:00
Snakes 27b6055d6e Exclude JL3 from edit_post limit (megathreads &c). 2022-06-18 18:24:59 -04:00
Aevann1 668cfdc90a made it not possible to edit posts/comments older than a week 2022-06-18 22:53:10 +02:00
Aevann1 eba4452d79 fix 500 error 2022-06-18 22:41:00 +02:00
Aevann1 dc8f230ae4 fix 500 error 2022-06-18 22:11:50 +02:00
Aevann1 dde19f7d85 fix 500 error related to variables 2022-06-18 19:50:03 +02:00
Aevann1 5520447d55 make modmail messages use the files refactor 2022-06-18 19:41:24 +02:00
Aevann1 b34dd88560 remove legacy code in video upload (thx @everyone) 2022-06-18 18:23:10 +02:00
Aevann1 ccdabcba29 allow uploading of all types of files (using lain.la)
+ allow multiple file upload in bios and messaging admins
2022-06-18 17:53:34 +02:00
Aevann1 56f8cf793e give visible bots a body column (so their comments are searchable)
+ don't sanitize zoz/longpostbot/aj comments
2022-06-18 17:37:01 +02:00
Aevann1 712bb52392 fix 500 error on /settings/gumroad 2022-06-18 03:59:33 +02:00
Aevann1 f60db1598d replace "g.db.query" on pkeys with the much more efficient "g.db.get" 2022-06-18 02:57:23 +02:00
Aevann1 c42cb538aa add a button for PCM to print marseybux 2022-06-18 02:35:27 +02:00
Aevann1 8c137fef2b verify cloudflare 2022-06-18 01:22:56 +02:00
Aevann1 96d7df327f Revert "CF verification"
This reverts commit 62644f452f.
2022-06-18 01:19:42 +02:00
Aevann1 62644f452f CF verification 2022-06-18 01:18:06 +02:00
Aevann1 80852cc395 specify encoding when reading text files 2022-06-18 00:19:18 +02:00
Aevann1 28fa03669d use f-string 2022-06-18 00:14:27 +02:00
Snakes c46f785229 Loosen auth requirement on /directory. 2022-06-17 16:38:30 -04:00
Aevann1 62d5a0d8dc Revert "use notify_mod_actions in deletion msg"
This reverts commit d7a84a2188.
2022-06-17 21:28:37 +02:00
Aevann1 d7a84a2188 use notify_mod_actions in deletion msg 2022-06-17 21:27:32 +02:00
Aevann1 e072e15819 cache profile pics for 1 day to prevent DDOS 2022-06-17 21:21:26 +02:00
Aevann1 4bae98dab0 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-06-17 20:30:08 +02:00
Aevann1 2c6b6cc371 notify chadmins of hole deletions 2022-06-17 20:30:05 +02:00
Snakes b995b4ddfb Amend 9b17bb1cfe78: fix userpage for logged-out.
The previous fix to shadowbanned users not being able to view their
own profile broke userpages for logged out users (and filled the log
up with 500s) due to sloppy logic around accessing v.id. This has
been remedied.
2022-06-17 02:30:20 -04:00
Snakes 9b17bb1cfe Fix shadowbanned 404 on own profile. 2022-06-16 20:06:00 -04:00
Aevann1 57e63a2d8b hide autopoller/autobetter/autochoice from /comments 2022-06-16 14:34:35 +02:00
Snakes 7e54f858d3 Amend f8ae2a3d17c6: revert >= logic, fail loudly.
First, the apparent errors with >= 9 and 99 in the Marseys and
referrals code after the refactor are not actually bugs: they were
bug fixes mixed in with the refactor to fix an off-by-one.

Next, instead of failing silently on the `not user` branch in
badge_grant, we throw a ValueError. This retains the current
behavior where users get 500s to report while also enforcing the
assertion near the edge of the function.
2022-06-15 16:32:25 -04:00
Snakes f8ae2a3d17 Amend 3bc98f0a6b84: minor logic, style. 2022-06-15 16:08:26 -04:00
Aevann1 f4a6e76ab5 add nuke and un-nuke notifications 2022-06-15 21:36:02 +02:00
Aevann1 3bc98f0a6b extend TLSM's badge_grant() to almost all instanes where badges are granted 2022-06-15 21:33:21 +02:00
Aevann1 7ec994d4b3 show gift reason in public transfer log 2022-06-15 15:36:33 +02:00
Snakes f04dffe1a7 Create directory page for sidebar megathreads.
The sidebar previously did not prioritize information as well as
desired, and the proliferation of megathreads led to a number of
icons occupying frontpage visual space despite not often being
useful to frontpage use cases. Therefore, they have been moved to
a new page.

The /directory page is predominantly created with template logic,
and it should be within the ability of our semi-technical jannie
staff to maintain.
2022-06-15 03:27:04 -04:00
Snakes 131ae3027b Content: Snappy Christian /h/truth. 2022-06-13 20:43:56 -04:00
Aevann1 cec1994ff7 ppl with code contributor badge can now make "(changelog)" posts 2022-06-13 23:41:29 +02:00
Aevann1 8e8fd8c1da catch invalid ticket quantity 500 error 2022-06-13 20:34:57 +02:00
Aevann1 0f49c8e32f replace spaces with tabs 2022-06-13 20:33:25 +02:00
Aevann1 f4aa70cc74 Revert "Add user title coin cost parameter."
This reverts commit dece3fd460.
2022-06-13 20:10:53 +02:00
Aevann1 07f2c0d2ca make marsey counter work everywhere (not just comments) 2022-06-13 20:05:24 +02:00