Commit graph

15398 commits

Author SHA1 Message Date
Michael House
e477e45850 Replaced default_test.webp 2022-06-01 21:14:18 -05:00
Michael House
fe26e2c10b Merge branch 'frost' into adding_image_assets 2022-06-01 19:33:30 -05:00
Ben Rog-Wilhelm
61d58fac16
Merge pull request #94 from themotte/fix_register_tabbing
Added tabindex values to inputs on register page
2022-05-28 10:14:34 -05:00
Ben Rog-Wilhelm
1893ffa6e8
Merge pull request #92 from themotte/change_default_banner
Removed old banner
2022-05-28 10:13:24 -05:00
JulianRota
14e6167358
Merge pull request #95 from themotte/remove_chat_button
Removed chat button
2022-05-27 15:46:53 -04:00
Ben Rog-Wilhelm
f359e55275
Remove a pair of redundant CSS classes.
Co-authored-by: Ben Rog-Wilhelm <zorba@pavlovian.net>
Co-authored-by: Michael House <mjhouse@protonmail.com>
2022-05-27 06:50:50 -05:00
Michael House
35c823570c Added tabindex values to inputs on register page 2022-05-27 05:21:16 -05:00
Michael House
f7744334b6 Removed chat button 2022-05-27 05:19:29 -05:00
Michael House
745d30dead Removed old banner 2022-05-25 19:22:52 -05:00
Ben Rog-Wilhelm
09fb594539
Merge pull request #89 from themotte/remove_emoji_directory
Removed emoji directory
2022-05-25 10:44:01 -05:00
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
Julian Rota
68b10ff3f8 Add a site setting for the post filtering feature 2022-05-24 00:13:33 -04:00
Julian Rota
e3ed57a29e Fix migration, forgot to handle existing submission rows 2022-05-23 23:06:04 -04:00
Julian Rota
60084e5eef Update JS to clean up reporting UI after addressing 2022-05-23 22:59:40 -04:00
Julian Rota
a973677ff9 HTMl update to show buttons 2022-05-23 22:59:21 -04:00
Julian Rota
b6f068645d Retrieve reported post list by status instead of by reports 2022-05-23 22:58:06 -04:00
Julian Rota
0a67c0138f Support setting ignored status 2022-05-23 22:57:23 -04:00
Julian Rota
16cc7ae6f6 Set reported status when reported and not ignored 2022-05-23 22:54:53 -04:00
Michael House
4f01b5ad1a Replaced site_preview.webp 2022-05-23 20:28:28 -05:00
Julian Rota
4b6aa40960 No more removing reports 2022-05-23 00:35:26 -04:00
Julian Rota
286cc4e2fb Try setting nullable in SqlAlchemy models 2022-05-22 21:33:44 -04:00
Julian Rota
9ec4a4f9c9 Try restoring schema.sql 2022-05-22 21:29:10 -04:00
Julian Rota
c3b866201b Try fixing database migrations 2022-05-22 21:19:00 -04:00
Julian Rota
0002f66f36 Merge branch 'frost' into new-user-filtering 2022-05-22 17:01:45 -04:00
Michael House
d9b348a3ca Changed default profile url from emoji 2022-05-22 11:02:09 -05:00
Michael House
9ea780ce84 Removed emoji directory 2022-05-22 09:11:16 -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
Julian Rota
88fcdabd78 Flagging cleanup
Visible only to Admin
Allow multiple flags per user per post
2022-05-18 23:54:20 -04: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
Julian Rota
6d68993a8d Merge branch 'frost' into new-user-filtering 2022-05-16 23:55:50 -04:00
Julian Rota
f231726b3a Initial filtering of posts/submissions 2022-05-16 23:33:12 -04:00
Michael House
a85cc39e49 Removed unused images, including some used as defaults in subs 2022-05-16 21:07:28 -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