Aevann1
0b7a5208e9
fix reddit mention bugs
2022-07-10 16:09:41 +02:00
Aevann1
9ea0f46250
tweaking offsite mentions a little
2022-07-10 15:02:24 +02:00
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