Commit graph

15270 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
dad557a973
Merge pull request #91 from themotte/change_default_banner
Replaced site_preview.webp
2022-05-25 10:43:04 -05:00
Michael House
4f01b5ad1a Replaced site_preview.webp 2022-05-23 20:28:28 -05:00
Michael House
02d9f1d9b2
Merge pull request #88 from themotte/remove_marsey_images
Remove marsey images
2022-05-22 09:09:39 -05:00
Michael House
ddb1523bde Fixed a merge conflict that I somehow missed and removed marsey images from seed db 2022-05-22 08:27:13 -05:00
Michael House
82a18e5cad Up-merged and resolved conflicts in routes/login.p and routes/votes.py 2022-05-22 08:23:59 -05:00
FatherInire
fcba426009
Remove some gimmicky r/drama features.
Co-authored-by: Inire <>
2022-05-21 21:43:00 -05:00
FatherInire
31cb9e049f
Add basic posting to the e2e test.
Co-authored-by: Inire <>
2022-05-21 21:39:54 -05:00
Ben Rog-Wilhelm
d0c9a6b2d7
Update default new user profile pic.
* add feather asset from opensymbols
  ([url](https://www.opensymbols.org/symbols/language-craft/feather-b135df39?id=44015))
* update routes/login.py to use new feather.webp emoji
* update seed-db.sql to add feather emoji

Co-authored-by: Motte Lurk <mottelurk@proton.me>
Co-authored-by: Ben Rog-Wilhelm <zorba@pavlovian.net>
2022-05-21 21:35:39 -05:00
Michael House
6be85ca930 Adding emoji directory back in to see if it makes the diff on the pull request work faster 2022-05-18 21:13:14 -05:00
Michael House
b14e88b486 Removed marseywholesome.webp that was previously moved 2022-05-18 21:01:25 -05:00
Michael House
f3a479f991 Removed emoji feature from templates and deleted emoji images 2022-05-18 20:53:28 -05:00
Michael House
0565af7211 Removed emoji images from error pages 2022-05-18 20:05:12 -05:00
faul_sname
8e3ee8d9a2 [#80] Just entirely nuke the marsey stuff with the hardcoded post id 2022-05-17 19:00:23 -05:00
faul_sname
5eb9bb635c [#80] why is linkedin even banned 2022-05-17 19:00:23 -05:00
faul_sname
309bf44f12 [#80] Fix XSS vulnerability
On unmodified themotte, try creating a submission with

```html
<img src="/doesnotexist.png" onerror="alert(1)" />
```

and observe that your browser opens an alert window.
2022-05-17 19:00:23 -05:00
faul_sname
61fe88d876 [#80] Fix replacement of link with itself 2022-05-17 19:00:23 -05:00
faul_sname
e1a1277268 [#80] Split marked.js into vendor part and custom part 2022-05-17 19:00:23 -05:00
faul_sname
def7e3fd0e [#80] Replace borked email regex with something less borked 2022-05-17 19:00:23 -05:00
faul-sname
4892b58d10
Add migrations using alembic.
* #39 Add Flask-Migrate dep

* #39 Make it such that flask db init can run

https://github.com/miguelgrinberg/Flask-Migrate/issues/196#issuecomment-381343393

* Run flask db init, update migrations.env, commit artifacts

* Set up a script such that you can `docker-compose exec files bash -c 'cd /service; FLASK_APP="files/cli:app" flask '` and have it do whatever flask thing you want

* Fix circular dependency

* import * is evil

* Initial alembic migration, has issues with constraints and nullable columns

* Bring alts table up to date with alembic autogenerate

* Rerun flask db revision autogenerate

* Bring award_relationships table up to date with alembic autogenerate

* [#39/alembic] files/classes/__init__.py is evil but is at least explicitly evil now

* #39 fix model in files/classes/badges.py

* #39 fix model in files/classes/domains.py and files/classes/clients.py

* #39 fix models: comment saves, comment flags

* #39 fix models: comments

* Few more imports

* #39 columns that are not nullable should be flagged as not nullable

* #39 Add missing indexes to model defs

* [#39] add missing unique constraints to model defs

* [#39] Temporarily undo any model changes which cause the sqlalchemy model to be out of sync with the actual dump

* #39 Deforeignkeyify the correct column to make alembic happy

* #39 flask db revision --autogenerate now creates an empty migration

* #39 Migration format such that files are listed in creation order

* #39 Better first revision

* #39 Revert the model changes that were required to get to zero differences between db revision --autogenerate and the existing schema

* #39 The first real migration

* #39 Ensure that foreign key constraints are named in migration

* #39 Alembic migrations for FK constraints, column defs

* [#39] Run DB migrations before starting tests

* [#39] New test to ensure migrations are up to date

* [#39] More descriptive test failure message

* Add -T flag to docker-compose exec

* [#39] Run alembic migrations when starting the container
2022-05-17 18:55:17 -05:00
Michael House
19903cccb5
Adding usernotes. 2022-05-16 11:53:24 -05:00
Ben Rog-Wilhelm
957edab4dc Update rule text for new site. 2022-05-15 14:21:17 -05:00
Ben Rog-Wilhelm
e590068786 Add workflow badge 2022-05-15 14:21:11 -05:00
Ben Rog-Wilhelm
222c2d9df0 Edit a bunch of error messages. 2022-05-15 14:21:05 -05:00
Ben Rog-Wilhelm
8f973ff9c9
Add open-in-tab support for userpages.
Originally written by @faul-sname
2022-05-15 14:20:53 -05:00
Ben Rog-Wilhelm
3c8798e4da
Add run_tests step. 2022-05-14 02:13:53 -05:00
Ben Rog-Wilhelm
14ac41c73a
Fix OSSAR permissions. 2022-05-14 02:13:43 -05:00
Ben Rog-Wilhelm
42dd403d28
Update CodeQL to v2. 2022-05-14 02:13:36 -05:00
Ben Rog-Wilhelm
91692153d2
Remove redundant CodeQL test. 2022-05-14 02:13:27 -05:00
Ben Rog-Wilhelm
1404ffd762
Fix: .gitignore ignores a critical file. 2022-05-14 02:13:08 -05:00
Ben Rog-Wilhelm
4890291861
Add a .dockerignore to make builds faster and smaller. 2022-05-14 02:12:55 -05:00
Ben Rog-Wilhelm
cb38e8118e
Add a script to do all the work of running tests. 2022-05-13 13:04:09 -05:00
Ben Rog-Wilhelm
d7421fc49f
Remove some unnecessary utility scripts. 2022-05-13 13:03:47 -05:00
Ben Rog-Wilhelm
75c91f7c8f
Remove some setup utilities that we no longer use. 2022-05-13 13:03:29 -05:00
FatherInire
a12123ca01
Initial e2e testing
Authored by @FatherInire
2022-05-13 02:55:29 -05:00
Ben Rog-Wilhelm
3e3cb7e2f9
Merge pull request #58 from themotte/remove-marseybux-from-ui
Remove all references to Marseybux, coins, and awards from UI only
2022-05-11 04:26:49 -05:00
Julian Rota
10d8cf037d Remove all references to Marseybux, coins, and awards from UI only 2022-05-10 23:49:45 -04:00
Ben Rog-Wilhelm
820ea7ec17
Merge pull request #57 from iro84657/add-trailing-lf
Add trailing LF to text files
2022-05-10 21:17:42 -05:00
iro84657
b7da8b575a Add trailing LF to text files 2022-05-10 21:05:51 -04:00
iro84657
1edc96841b Convert TheMotte.css line endings to LF 2022-05-10 21:05:46 -04:00
Ben Rog-Wilhelm
a37b48baf5
Merge pull request #55 from drzewiec/remove-pages
Removed user listing and shop pages
2022-05-10 04:14:27 -05:00
Chris Drzewiecki
c03e77d2d4 Set user listing/shop to require admin 2022-05-10 01:08:54 -06:00
Chris Drzewiecki
fd2630e0d1 Removed user listing and shop for non-admin users 2022-05-10 01:04:55 -06:00
Ben Rog-Wilhelm
c966a575b6
Merge pull request #54 from iro84657/remove-rDrama-links
Remove references to rDrama domain, app, and repo
2022-05-09 22:47:17 -05:00
iro84657
2eb2d6a034 Remove references to r/Drama archives 2022-05-09 22:02:15 -04:00
iro84657
8c2ee6a57a Remove references to Android apps 2022-05-09 21:59:20 -04:00
iro84657
6a31b87c35 Remove links to rdrama.net and Aevann1/rDrama 2022-05-09 21:55:42 -04:00
iro84657
6082cfc21b Add TheMotte manifest and remove unused manifests 2022-05-09 21:47:18 -04:00
Ben Rog-Wilhelm
6eab75ea16
Merge pull request #52 from iro84657/remove-holes
Remove references to holes
2022-05-09 20:26:32 -05:00
Ben Rog-Wilhelm
97eb828b30
Merge pull request #53 from aj-m/m49-post-submission-fix
chore: strip references to 'new' prop from submissions
2022-05-09 20:24:15 -05:00
Andrew Montenigro
3e52182a71 fix: remove submissions.new field from db schema 2022-05-09 13:53:59 -05:00