Commit Graph

66 Commits (4a05910161062504f6ce14cfd360732d1c351459)

Author SHA1 Message Date
Snakes 5e35342d2e Fix Cloudflare imports identifier shadow.
Proximal reason for fix is that /admin/clear_cloudflare_cache resulted
in infinite recursion and a stack overflow because it tried to call
itself as `clear_cloudflare_cache` rather than hitting the function of
the same name in files.helpers.cloudflare.
2022-11-07 17:30:15 -05:00
Aevann1 d76fe63c7f constantify image extensions and fix imgur .gif bug 2022-11-05 23:01:23 +02:00
justcool393 c2ae13363b fix 'none' sanity check from previous commit 2022-11-05 03:42:48 -05:00
justcool393 260091eaee assets: fix issue noted in 77e5da55ef
as it is, this is a backend issue. unforunately, there's no way in the UI that shows the name, image, or current tags, so that's why we insert it into the page

this change brings two ways to keep the current tag

as a sanity check: this also makes it so that you can't tag stuff as the string None
2022-11-05 03:37:03 -05:00
Snakes ac36b35588 Fix hat submission for some animated images. 2022-11-03 20:56:35 -04:00
justcool393 7f7180ea05 assets: fix *another* 500 2022-11-03 19:49:44 -05:00
justcool393 e639a8b870 assets: fix 500 for submitting marseys and hats 2022-11-03 19:42:58 -05:00
justcool393 5566fddbaa asset submissions: fix ImportError 2022-11-02 18:54:01 -05:00
Aevann1 141ec98c06 small dedup in asset_submissions 2022-11-02 00:27:42 +02:00
Aevann1 3b16c8f3e3 close image files after ur done 2022-10-25 17:41:23 +02:00
justcool393 a5799b222e hats: fix 2 500s (SQL errors) 2022-10-22 15:37:22 -05:00
Aevann1 2dcf6bcb0f make sure all images with resize parameter are under 500KB 2022-10-22 17:24:07 +02:00
justcool393 4f35819fee assets: use .get where we can instead of .query 2022-10-20 13:00:14 -05:00
justcool393 fc4e9866eb fix the fix 2022-10-20 09:59:14 -05:00
justcool393 d14eb65056 fix name bug with hats 2022-10-20 09:14:18 -05:00
justcool393 546883dcd5
fix fish's 500
im commiting this on my phone lol
2022-10-19 18:03:56 -07:00
justcool393 ffdf810aa9 fix 500 and populate page on error 2022-10-19 18:38:25 -05:00
justcool393 9627c6db01 don't pass for no reason and also marsey -> existing 2022-10-19 18:38:25 -05:00
justcool393 62bd5a34e8 g.db.query not g.db.get 2022-10-19 18:38:25 -05:00
justcool393 99f66c8d31 Add UI for updating marsey tags and also allow me to do it 2022-10-19 18:38:25 -05:00
Aevann1 44fca7f086 ripbozo 2022-10-17 21:13:33 +02:00
justcool393 f4af073253 fix 17 potential 500s 2022-10-16 02:51:42 -07:00
justcool393 3b86227872 refactor asset submissions a bit 2022-10-14 11:03:47 -07:00
Aevann1 5e55ff7f90 make the modlog note for updating assets link to te updated asset 2022-10-14 14:38:06 +02:00
justcool393 c56e45aa57 create cloudflare helper 2022-10-13 00:55:15 -07:00
justcool393 eebef17e8d another dumb syntax error 2022-10-11 08:40:19 -07:00
justcool393 c0acb1722b abort a bunch of stuff where we manually returned JSON 2022-10-11 08:40:19 -07:00
Aevann1 c381466389 tweak asset notifs 2022-10-10 14:13:43 +02:00
Aevann1 356c9f1219 add "(Admin)" to messages sent to users due to admin actions (for clarity to new users) 2022-10-10 08:11:17 +02:00
Aevann1 897885316f disable asset submissions in WPD and PCM 2022-10-08 03:00:27 +02:00
justcool393 c0f753e101 asset submissions permissions 2022-10-05 20:15:10 -07:00
justcool393 0349862531 view pending submitted marseys and hats perms 2022-10-05 19:55:54 -07:00
Aevann1 08d6a9c901 Revert "add nginx to docker"
This reverts commit 7c1eb4c6e3.
2022-10-04 21:35:02 +02:00
Aevann1 7c1eb4c6e3 add nginx to docker 2022-10-04 03:06:57 +02:00
justcool393 7e3f43c9ab
unperson shadowbanned users (#373)
* unperson shadowbanned users
if a shadowbanned user copes, does anyone hear them seethe?

* unperson shadowbanned users (by id)

* don't import that

* Add include_blocks.
We don't always want to request blocks from the db when we have a user set

* block shadowbanned users from hole mod tools

* don't allow awarding shadowbanned things

* fix conflict

* gracefully use get_account when specified and also add include_blocks flag to get_account as well
2022-09-30 14:00:58 -07:00
Snakes 4a54c6219a
Add trailing final newlines to source files.
Touched a ton of files to finally standardize on having trailing
final newlines, as best practice recommends and so our devs stop
accidentally fighting each other over it.

This was performed automatically with the following:
git ls-files -z '*.py' | while IFS= read -rd '' f; \
    do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
git ls-files -z '*.css' | while IFS= read -rd '' f; \
    do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2022-09-29 01:43:29 -04:00
Aevann1 fa4dee419d remove unnecessary imports 2022-09-27 02:47:52 +02:00
Aevann1 8fcc91a43e reduce resize values 2022-09-26 03:15:36 +02:00
Aevann1 340f9e31fe limit asset perms and generate modlog for updating 2022-09-23 14:51:57 +02:00
Aevann1 db9622565f tweak last commit 2022-09-19 01:36:48 +02:00
Aevann1 0930f85c4b remove all previous high quality versions of an asset when updating it 2022-09-19 01:34:23 +02:00
Aevann1 3f5ab7315f add form to update hats 2022-09-18 19:38:53 +02:00
Aevann1 6ff943914e testing done 2022-09-17 22:25:15 +02:00
Aevann1 eee6058330 why yes, I test on prod, how could you tell? 2022-09-17 22:21:21 +02:00
Aevann1 956a8c8506 purge CF cache on emoji update 2022-09-17 22:13:30 +02:00
Aevann1 1d184661e1 allow me to remove/approve marseys and hats 2022-09-17 20:43:50 +02:00
Aevann1 ef00d588f5 add /admin/update/marseys 2022-09-17 17:08:24 +02:00
Aevann1 3a6c3d29a8 sneed 2022-09-15 03:00:02 +00:00
Aevann1 c2f397df40 show the original file in /marseys 2022-09-14 12:55:35 +02:00
Aevann1 a7236cd807 fix typo 2022-09-13 20:06:57 +02:00