forked from rDrama/rDrama
1
0
Fork 0
 
 
 
 
 
 
Go to file
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
.github Update dependabot.yml 2022-11-12 10:30:10 +02:00
chat fix: upgrade react-window from 1.8.7 to 1.8.8 (#474) 2022-11-21 20:29:22 -05:00
files Fix reply/mention notifications from muted users. 2022-11-21 23:08:31 -05:00
.gitattributes convert repo from CRLF to LF 2022-10-04 17:24:58 +02:00
.gitignore Chat rework deployment infra fixes. 2022-09-24 00:26:44 -04:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-01-31 15:29:51 -08:00
Dockerfile Docker dev workaround for ImageMagick. 2022-11-21 18:59:06 -05:00
LICENSE mn 2022-05-05 01:09:46 +02:00
docker-compose.yml build imagemagick from source again 2022-11-20 23:35:09 +02:00
env switch from hcaptcha to turnstile 2022-11-11 20:34:06 +02:00
gunicorn.conf.py show url and method again 2022-11-17 10:41:56 -06:00
imei.sh build imagemagick from source again 2022-11-20 23:35:09 +02:00
nginx-serve-static.conf add nginx to docker 2022-10-04 21:48:52 +02:00
nginx.conf small nginx change 2022-10-30 02:59:33 +02:00
pg_hba.conf mn 2022-05-05 01:09:46 +02:00
readme.md .co -> .tv 2022-11-18 08:57:06 -08:00
requirements.txt fix: requirements.txt to reduce vulnerabilities (#449) 2022-11-14 19:24:57 +02:00
run_tests.py convert repo from CRLF to LF 2022-10-04 17:24:58 +02:00
schema.sql sneed (rename procoins to marseybux) (#472) 2022-11-21 18:08:29 -05:00
seed-db.sql sneed 2022-11-21 00:18:59 +00:00
snappy_PCM.txt WIP: Add Casino (Do Not Merge) (#341) 2022-09-04 22:53:34 +02:00
snappy_rDrama.txt sneed 2022-11-16 06:20:48 +00:00
startup.sh remove `git pull` from startup scripts 2022-10-13 20:20:54 +02:00
startup_chat.sh remove `git pull` from startup scripts 2022-10-13 20:20:54 +02:00
startup_docker.sh potential solution to the chat docker problem 2022-10-13 20:21:02 +02:00
supervisord.conf add nginx to docker 2022-10-04 21:48:52 +02:00
ubuntu_setup.sh build imagemagick from source again 2022-11-20 23:35:09 +02:00

readme.md

Build status

This code runs https://rdrama.net, https://pcmemes.net and https://watchpeopledie.tv

Installation (Windows/Linux/MacOS)

1- Install Docker on your machine.

Docker installation

2- Run the following commands in the terminal:

git clone https://github.com/Aevann1/rDrama/

cd rDrama

docker-compose down --rmi all --remove-orphans --volumes

docker-compose up

3- That's it! Visit localhost in your browser and make an account (the first account to be made will have full admin rights)

4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, edit the variables in the env file and then restart the docker container.