forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

1071 Commits (86717e37b2fec304132dd5e6e1b802a54e3f6c25)

Author SHA1 Message Date
Snakes dc7f13304e Add following holes for notifications. 2022-06-09 16:24:24 -04:00
Aevann1 c100ed415c increase edit_post ratelimit so it doesnt fuck with drafts 2022-06-09 20:09:18 +02:00
Aevann1 63c16a867a make the ratelimit for editing much lower to cut
down on mass overwriting
2022-06-09 18:10:25 +02:00
Aevann1 cea253a52c don't notify me anymore of carp posts 2022-06-09 15:29:13 +02:00
Snakes 995375decc Refactor reddit mentions, move to cron.
The reddit mentions system contained much duplicated code and was
grafted onto the post thumbnail pipeline to achieve semi-regular
invocation. Instead, we now run it through the new cron system,
and the duplicate code has been refactored out.
2022-06-07 10:42:24 -04:00
Snakes 843ff51ace Make post rate limit site-specific. 2022-06-02 22:10:59 -04:00
Snakes e32a4bda48 Add set/unset nsfw on comment to modlog. 2022-05-30 08:00:16 -04:00
Aevann1 e5dbc9bfdd made it so ALL comments on ghosted posts are ghosted too, this includes the hidden poll comments
that way, the poll voters will be hidden and we can have anonymous polls

context: https://rdrama.net/votes?link=t3_2007526
2022-05-30 05:26:52 +02:00
Aevann1 4e5f7935dd dfs 2022-05-28 02:30:07 +02:00
Aevann1 384afb125a fsd 2022-05-27 17:28:30 +02:00
Aevann1 66b3efab36 award refactor 2022-05-27 01:08:23 +02:00
Aevann1 c5ace85f9b fsd 2022-05-26 17:57:24 +02:00
Aevann1 195148da1e sfd 2022-05-25 21:45:34 +02:00
Aevann1 94151bf2d6 fsd 2022-05-25 21:45:03 +02:00
Aevann1 386db76c10 crgd is a king 2022-05-25 20:29:22 +02:00
Snakes 1c7458e111 Sanitize: modularize normalize_url, fix streamable.
Originally prompted by https://rdrama.net/post/18459/-/1984609 which
noticed that streamable.com/e/ links as posts would have another e/
added to them. This was in spite of logic in posts.py api_is_repost
and submit_post designed to specifically counteract this.
Proximal cause was a copypasta'd url.replace(...) chain which
caused the mistake before the streamable-specific logic had a chance
to avoid making it.

Solution: remove the streamable replacement from the chained statement
and create `helpers.normalize_url(url)` to get rid of the copypasta.
2022-05-25 04:43:16 -04:00
Aevann1 0bd15d3914 burgers? 2022-05-23 21:00:14 +02:00
Aevann1 0a74a98ec5 big ass commit 2022-05-23 00:15:29 +02:00
Aevann1 969d1898b5 vid refactor 2022-05-22 18:13:19 +02:00
Aevann1 0af46237f6 stripper 2022-05-22 12:26:59 +02:00
Snakes 23d93b2f19 Fix Snappy post pinning condition.
Recently, caa81452f4 relaxed the condition for Snappy pinning a post
from `body.startswith(':#marseypin:')` to the same sans trailing colon.
I believe this was intended to allow :marseypin2: to also lead to post
pinning. However, the amusing, though incorrect, side effect is that
:marseypinkcat: and :marseypinochet: can now also lead to Snappy pins.
This has been remedied by explicitly defining the two conditions we
want rather than hoping all :marseypin [sic] are about pinning.
2022-05-22 00:36:45 -04:00
Aevann1 db3ed7961f idk 2022-05-19 20:36:26 +02:00
Aevann1 ef0046f091 fsd 2022-05-18 21:29:07 +02:00
Aevann1 caa81452f4 sf 2022-05-13 14:38:14 +02:00
Aevann1 9bd8fcbd1c sf 2022-05-10 09:20:49 +02:00
Aevann1 b71ae6cc74 sf 2022-05-09 13:21:49 +02:00
Aevann1 7ddd5ec76a sfd 2022-05-09 11:32:55 +02:00
Aevann1 71890a2dd1 sfd 2022-05-09 10:47:35 +02:00
TLSM c7ba75516b Switch to marsey.cat for Snappy /u/. (#251)
* Switch to marsey.cat for Snappy /u/.

camas is down, replacing it with search.marsey.cat.
Note that when looking for existing Snappy comments to test against,
it appears that something else with Snappy generation is broken.

Ex: /post/66263/-/1876803 puts an entire post URL in the author field.
This commit makes no attempt to fix this. TODO for later.

* Fix Snappy body /u/ extracting author from post URL.

Following up on 1137996f0fe7:
Issue was that author was being extracted from post.url, not href.
Given that the relevant code section is specifically for /u/s in the
body text of the submission, this was a problem.
2022-05-09 01:50:39 +02:00
Aevann1 028563ad7d bgd 2022-05-07 08:04:14 +02:00
Aevann1 1b86af8def fg 2022-05-07 07:28:51 +02:00
Aevann1 f2039d7713 sfd 2022-05-07 06:13:19 +02:00
Aevann1 ca61569b44 nv 2022-05-06 06:55:15 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 a9c86604a0 fsd 2022-05-04 02:54:46 +02:00
Aevann1 47d01ed00b vb 2022-05-03 04:15:35 +02:00
Aevann1 94e6eb1ef6 sdf 2022-05-02 00:28:51 +02:00
Aevann1 a4b0565b5a sfd 2022-05-01 23:48:53 +02:00
Aevann1 bc2a20cd4b sfd 2022-05-01 23:44:38 +02:00
Aevann1 d08a6010c8 dfs 2022-04-29 21:19:54 +02:00
Aevann1 20f925afb7 fds 2022-04-28 01:09:39 +02:00
Aevann1 43751ccde2 vdx 2022-04-26 16:18:57 +02:00
Aevann1 ab83d60730 fds 2022-04-26 15:01:05 +02:00
Aevann1 43366f4a28 fds 2022-04-26 02:26:27 +02:00
Aevann1 ad47e9524a dfs 2022-04-25 21:52:30 +02:00
Aevann1 e60fe0bcd6 gf 2022-04-25 16:51:40 +02:00
Aevann1 0cbd70a8d6 fad 2022-04-24 22:39:37 +02:00
pqpetq fd80fe6313 fixes and additions (#230)
* Update posts.py

* Update readme.md

* Update requirements.txt

* Update requirements.txt

Co-authored-by: Aevann1 <59999695+Aevann1@users.noreply.github.com>
2022-04-24 15:22:12 +02:00
Aevann1 457a717075 fds 2022-04-24 00:09:25 +02:00
Aevann1 8dde3965aa fds 2022-04-24 00:06:45 +02:00
Aevann1 d026174472 fds 2022-04-23 00:48:01 +02:00
Aevann1 f30b97d513 fds 2022-04-22 16:15:17 +02:00
Aevann1 ac4da7516d fsdfds 2022-04-22 15:23:56 +02:00
Aevann1 bd6349d448 Revert "RESTORE CACHE"
This reverts commit 3d193357ef.
2022-04-19 22:22:24 +02:00
Aevann1 3d193357ef RESTORE CACHE 2022-04-19 22:21:47 +02:00
Aevann1 e1e45982fb fsa 2022-04-18 23:18:02 +02:00
Aevann1 1e49e260cc fsd 2022-04-18 20:30:25 +02:00
Aevann1 0e74b54424 fsd 2022-04-18 20:25:14 +02:00
Aevann1 521eb16db7 fds 2022-04-18 19:51:39 +02:00
Aevann1 78ea56837f fds 2022-04-17 22:20:40 +02:00
Aevann1 7c18a97d56 fds 2022-04-17 16:59:18 +02:00
Aevann1 99cb01d9fc fdsfds 2022-04-15 18:28:08 +02:00
Aevann1 75be2dea76 fds 2022-04-15 17:35:56 +02:00
Aevann1 a1d7849798 fds 2022-04-15 17:35:11 +02:00
Aevann1 348d698239 fds 2022-04-14 18:26:41 +02:00
Aevann1 25a130f593 fds 2022-04-13 16:19:18 +02:00
Aevann1 579e81de2a site settings 2022-04-12 21:05:50 +02:00
Aevann1 17852d30e6 fart mode 2022-04-12 19:29:52 +02:00
Aevann1 bc092b8011 sfd 2022-04-10 18:43:39 +02:00
Aevann1 95fd9c3912 fds 2022-04-10 18:37:40 +02:00
Aevann1 c0c0b3a134 fsd 2022-04-10 18:27:27 +02:00
Aevann1 de6dbead0d dsf 2022-04-10 17:28:31 +02:00
Aevann1 a334aa815e fsd 2022-04-10 02:11:06 +02:00
Aevann1 575a3f3712 warning 2022-04-10 02:05:15 +02:00
Aevann1 30833f8130 fsd 2022-04-10 01:12:59 +02:00
Aevann1 15a02cf3cd fds 2022-04-10 01:07:03 +02:00
Aevann1 9a75ddee97 dogecore 2022-04-05 17:50:56 +02:00
Aevann1 eca7f466df fsd 2022-04-05 17:04:15 +02:00
Aevann1 4c2f7d5667 fsd 2022-04-04 23:15:25 +02:00
Aevann1 8ad6fd509f gd 2022-04-04 22:53:37 +02:00
Aevann1 02f8729c5f devrama 2022-04-04 19:52:14 +02:00
Aevann1 0b326f7bd5 gdf 2022-04-04 19:29:52 +02:00
Aevann1 6ca83dcc6c fds 2022-04-04 12:34:49 +02:00
Aevann1 83749285c5 less go 2022-04-04 03:41:15 +02:00
Aevann1 7a8108e106 fsd 2022-04-03 22:16:54 +02:00
Aevann1 4346a7c583 fds 2022-04-03 16:37:23 +02:00
Aevann1 c9b3e8528d fsd 2022-04-02 21:42:21 +02:00
Aevann1 d947503545 fsd 2022-04-02 19:22:19 +02:00
Aevann1 7713fd891d fsd 2022-04-02 19:11:35 +02:00
Aevann1 ae82ada424 fsd 2022-04-02 18:54:27 +02:00
Aevann1 79952c87f4 fds 2022-03-31 17:49:12 +02:00
Aevann1 db53c1f666 fsd 2022-03-31 17:14:19 +02:00
Aevann1 b02b27ce4f fds 2022-03-31 17:00:57 +02:00
Aevann1 e1db64f34a c 2022-03-26 13:36:25 +02:00
Aevann1 b74c8711d7 fd 2022-03-26 00:30:15 +02:00
Aevann1 eec1738d01 what a mess 2022-03-24 21:44:12 +02:00
Aevann1 b31ffc6de6 far 2022-03-23 18:01:10 +02:00
Aevann1 e1c4ea74cc sfd 2022-03-22 15:50:41 +02:00
Aevann1 2c9dca2e8e fds 2022-03-22 05:45:32 +02:00
Aevann1 762f5c5acc gf 2022-03-21 23:46:10 +02:00
Aevann1 0293f60453 fart 2022-03-19 21:15:13 +02:00
Aevann1 e3a8d03549 cmon 2022-03-19 16:59:56 +02:00
Aevann1 7015e93a07 v 2022-03-19 13:37:43 +02:00
Aevann1 4f283e0764 fds 2022-03-19 01:21:14 +02:00
Aevann1 397dca9a83 publish fix 2022-03-18 21:05:54 +02:00
Aevann1 0c5435e04f sfd 2022-03-18 20:31:24 +02:00
Aevann1 7eef18c69d fds 2022-03-17 20:36:55 +02:00
Aevann1 262b0e8cbb fds 2022-03-17 20:31:09 +02:00
Aevann1 91f8c66306 dsa 2022-03-17 19:45:09 +02:00
Aevann1 329f34a6e6 pizza 2022-03-17 18:12:59 +02:00
Aevann1 76ac93de99 fsd 2022-03-17 16:22:44 +02:00
Aevann1 830949a209 fsd 2022-03-17 12:28:13 +02:00
Aevann1 de6cebe659 aw 2022-03-17 10:59:44 +02:00
Aevann1 bae12bff60 xvc 2022-03-09 04:54:57 +02:00
Aevann1 95e338eb07 snap 2022-03-09 04:54:39 +02:00
Aevann1 b35bab0672 hole 2022-03-09 04:04:37 +02:00
Aevann1 b39e51082c ghost 2022-03-09 03:49:57 +02:00
Aevann1 514d6ec126 right 2022-03-09 03:44:53 +02:00
Aevann1 acd3843632 fixed king 2022-03-06 21:03:50 +02:00
Aevann1 5404413a01 chri 2022-03-06 06:23:12 +02:00
Aevann1 bf391394a8 bad PR 2022-03-05 22:53:39 +02:00
Aevann1 0198bb789e search 2022-03-05 02:04:20 +02:00
Aevann1 8ffad628ae None 2022-03-05 01:49:38 +02:00
Aevann1 72d658afac okay 2022-03-05 01:13:57 +02:00
Aevann1 1da0d95830 wut 2022-03-05 00:47:25 +02:00
Aevann1 35ec2a7712 fart 2022-03-05 00:46:20 +02:00
Aevann1 109526ac82 trappy 2022-03-04 19:22:40 +02:00
Aevann1 80e3eabc45 what 2022-03-03 22:24:02 +02:00
Aevann1 b7ab468ae0 jesus christ im an idiot 2022-03-03 22:22:23 +02:00
Aevann1 dc02c114d7 ah 2022-03-03 18:06:35 +02:00
Aevann1 414e9c5ba8 fart 2022-03-03 02:14:47 +02:00
Aevann1 03135e4493 fart 2022-03-03 02:00:14 +02:00
Aevann1 a2019ff48f hodor 2022-03-02 06:25:45 +02:00
Aevann1 f992cd8ebf embed 2022-03-02 02:13:13 +02:00
Aevann1 b6ad0da4b9 carp 2022-03-02 02:05:30 +02:00
Aevann1 f8b886e9f4 perma 2022-03-01 02:23:39 +02:00
Aevann1 70caa241da gf 2022-03-01 02:20:11 +02:00
Aevann1 c22f4e4e95 created 2022-03-01 02:06:50 +02:00
Aevann1 94f2a69167 N 2022-03-01 01:30:44 +02:00
Aevann1 3be895c401 snappy 2022-02-28 22:23:54 +02:00
Aevann1 65b419ded2 magathread 2022-02-28 21:36:30 +02:00
Aevann1 2f35bce111 new 2022-02-28 00:49:34 +02:00
Aevann1 ac0932986a fds 2022-02-28 00:42:13 +02:00
Aevann1 48ae53263a gallery 2022-02-28 00:10:39 +02:00
Aevann1 00aebcbafc regex2 2022-02-28 00:05:51 +02:00
Aevann1 ddbb610142 regex 2022-02-27 23:57:44 +02:00
Aevann1 eaa169c5df the shadow of death 2022-02-27 21:27:03 +02:00
Aevann1 ab29c59bba violence 2022-02-27 17:52:24 +02:00
Aevann1 e0dfe332c2 cope 2022-02-26 20:53:17 +02:00
Aevann1 6cc9cddef0 fug 2022-02-26 16:21:07 +02:00