Commit Graph

1447 Commits (ef5c24cae5b74d1e04e7f7f1eeaa496954935d99)

Author SHA1 Message Date
Aevann1 b6eea4191c make me able to see reddit mentions again 2022-11-30 02:40:38 +02:00
Aevann1 b6efc27551 use "i" instead of "assets/images" 2022-11-30 00:52:19 +02:00
justcool393 e9887059d1 use `self.__class__.__name__` for `__repr__` 2022-11-29 15:02:38 -06:00
justcool393 67bfe5a5bd remove unnecessary `str()` 2022-11-29 14:29:27 -06:00
Snakes 2304876348
Fix emoji search after Marsey caching revert. 2022-11-28 22:18:16 -05:00
geese_suck 030710e5db
add fallback award so I dont get fucked by aevann asking me to change something for a site that has 3 active users 2022-11-27 21:24:05 -08:00
Aevann1 c9f44b5777 rename data-click to data-click2 2022-11-28 06:35:33 +02:00
Aevann1 d0047dcc5a include users who have more than 30 days to be unbanned/unchhuded in /banned and /chuds for accountability 2022-11-28 03:32:01 +02:00
justcool393 5381074617 sigs: limit to 250px (configurable by variable) 2022-11-27 12:15:33 -06:00
justcool393 767cc467bb marseys: cache marseys and emojis and fun stuff (#15)
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: #15
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-11-27 16:59:36 +00:00
Aevann1 1f4fc16d44 add !YOU! to post bodies and to comments 2022-11-27 03:31:46 +02:00
Aevann1 575a5080bd unpaywall profile views 2022-11-27 02:20:54 +02:00
justcool393 ae50cc2772 const: rename constants from LIMIT to MINIMUM
the new name is much much clearer
2022-11-26 14:20:44 -06:00
Marco af74c7c1fc Update chud award to include forced trans/pride flag hats (#10)
Disclaimer: I made these changes in Notepad and didn't bother to test this change locally.
Co-authored-by: Marco <bussylmao@gmail.com>
Reviewed-on: #10
Co-authored-by: Marco <marco@noreply.fsdfsd.net>
Co-committed-by: Marco <marco@noreply.fsdfsd.net>
2022-11-26 20:14:31 +00:00
Aevann1 b93bf4daae dont convert username to lowercase for !YOU! 2022-11-26 22:11:07 +02:00
Aevann1 39bb04bdb8 remove TS limit for !YOU! 2022-11-26 22:10:40 +02:00
Aevann1 bb153e541d Revert "you posts: constantify truescore requirement"
This reverts commit 1b721126a2.
2022-11-26 22:09:07 +02:00
Aevann1 98a0f37e59 Revert "user and"
This reverts commit 0b146d0b7b.
2022-11-26 22:08:54 +02:00
justcool393 0b146d0b7b user and 2022-11-26 13:40:34 -06:00
justcool393 1b721126a2 you posts: constantify truescore requirement 2022-11-26 13:39:31 -06:00
float trip df4eb02c0e Allow API clients to view !YOU! submissions. 2022-11-26 18:06:04 +00:00
Aevann1 7cb4740426 snned 2022-11-26 07:02:34 +02:00
Aevann1 9c773b02a5 sneed 2022-11-26 06:59:07 +02:00
Aevann1 a641acaf8f use sets instead of lists in some statements 2022-11-26 06:52:47 +02:00
Aevann1 6dd4f2492d fix api app link 2022-11-26 06:41:56 +02:00
Aevann1 bcbf524fbe make sure stickied child comments are always at the top place they can be 2022-11-26 06:01:20 +02:00
justcool393 f86d351ac4 fix saved subscribers stuff 2022-11-25 16:06:18 -06:00
Snakes 0254ff6567
Restrict New User hat to rDrama. 2022-11-23 20:28:39 -05:00
Snakes 9eab252e5b
Fix reply/mention notifications from muted users.
Consider the case of the current /notifications filter condition:
    WHERE ... NOT ((comments.sentto = 2) AND (users.is_muted))

SELECT 1 WHERE NOT ((null = 2) AND (true)); ⇒ 0 rows
SELECT 1 WHERE NOT ((1 = 2) AND (true)); ⇒ 1 row
SELECT 1 WHERE NOT ((2 = 2) AND (true)); ⇒ 0 rows

We want the first expression, where comments.sentto = null, to evaluate
to false, not to null, so it negates to true. Behavior as written is:

SELECT 1 WHERE NOT ((null = 2) AND (true)); →
SELECT 1 WHERE NOT (null AND true); →
SELECT 1 WHERE NOT null; →
SELECT 1 WHERE null;

Which guarantees a null return set. If we check first for non-nullity:

SELECT 1 WHERE NOT ((null IS NOT null) AND (null = 2) AND (true)); ⇒ 1
SELECT 1 WHERE NOT ((1 IS NOT null) AND (1 = 2) AND (true)); ⇒ 1
SELECT 1 WHERE NOT ((2 IS NOT null) AND (2 = 2) AND (true)); ⇒ 0
2022-11-21 23:08:31 -05:00
justcool393 272e2ee936
sneed (rename procoins to marseybux) (#472)
* sneed (rename procoins to marseybux)

* literally unusable

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 18:08:29 -05:00
Aevann1 2f31fdfdd7 Revert "remove User.newtab and see if anyone complains"
This reverts commit 787c89961f.
2022-11-21 18:55:13 +02:00
Aevann1 787c89961f remove User.newtab and see if anyone complains 2022-11-21 16:36:17 +02:00
Aevann1 62ffe2d628 use postToast in betting so the js deducting coins only execute if responde code is < 300 2022-11-21 03:00:16 +02:00
Aevann1 caabaf0c6f expand IS_LOCALHOST 2022-11-21 00:16:49 +02:00
Aevann1 ddf2a3cf51 make new-user hat be 7 days 2022-11-20 00:48:24 +02:00
gooseman dcbacc6d04 newfriend hat :)) 2022-11-19 14:18:13 -08:00
Aevann1 5288d7a7dc remove android app and replace with instructions on how to install PWA 2022-11-20 00:04:08 +02:00
Aevann1 37104be217 add exclusive android app posts 2022-11-19 23:22:03 +02:00
Aevann1 9e457165fa make me and sneks mod all holes 2022-11-19 20:24:02 +02:00
Snakes 2c81db79ef
Fix API for /comment/<cid>, /search/comments. 2022-11-18 15:33:07 -05:00
justcool393 255d5b2453 security: fix mute bypass
modmail: constantify user ID
2022-11-17 16:50:06 -06:00
justcool393 12881388d6 notifications: ignore notifications 2022-11-17 16:35:08 -06:00
justcool393 2c27b75b7a remove unnecessary imports 2022-11-17 15:44:29 -06:00
justcool393 83963470e8
user can_view functions (#460)
* user: move can_see_to user class

* stub out can_see in comments and posts

* make can_see a classmethod so it's usable for loggedoutfriends

* test

* kill me now

* threelargeclassesmating

* dfdfdfdfdfdfd

* sdsdsdsd

* classmethod should be above i think

* Revert "classmethod should be above i think"

This reverts commit df1772eb9e7e71bf7b89123f6277b648de2b1af3.

* Revert "Revert "classmethod should be above i think""

This reverts commit 32883406c2e2916fc6c436611376a1817c16cb84.

* test rewritnig thing

* go home python

* what the fuck python

* fix AttributeError

* sdsdsdsdsdsd

* lazy and user and stuff

* test

* Revert "test"

This reverts commit 45af5bb3d45f3ec17126ab117d494ec978062a38.

* merge

* newline

* test

* test 2

* Revert "test"

This reverts commit 196dae677e2ee8cd29261c93dcb747087cb399b6.

* revert test

* fix merge error

* fix import error ciruclation i think

* sdsd

* add type annotations back

* deleted_utc

* isinstance

* user_can_see in jinja and remove unnecessary things

* a bunch of stuff
remove can_see from comment and post
expand can_see to messages

* antiannoyingamountsofwhitespace

* fix for chudrama

* improve prev
2022-11-17 16:02:08 -05:00
justcool393 d80fa23409 kofi: decide whether to load in __init__
this unifies some of the logic with how we load classes
2022-11-17 14:00:19 -06:00
Aevann1 07a76e0ffd exclude me from offsitementions 2022-11-16 10:34:48 +02:00
justcool393 adf22b494a
sub relationship class (#456)
* sub relationships

* abstract = True

* fix

* fix spelling mistake
2022-11-15 11:05:42 -05:00
justcool393 3df53c63c9 alts: don't count deleted alts 2022-11-15 09:21:12 -06:00
Aevann1 b130139f3d sneed 2022-11-15 16:55:21 +02:00
Aevann1 1f16140367 use cloudflare icon 2022-11-15 15:54:24 +02:00