Commit Graph

965 Commits (692a9adb99d947e4239e53f4413dcc37e7e79b6d)

Author SHA1 Message Date
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