Commit Graph

101 Commits (4a54c6219ad8d8b8ecc4ee3a5ed4ac2f8f7fbc62)

Author SHA1 Message Date
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 08f9045818 remove linefeed at the end 2022-09-23 17:02:09 +02:00
Aevann1 5740ed3f00 fix capitalization 2022-09-23 16:56:01 +02:00
Aevann1 340f9e31fe limit asset perms and generate modlog for updating 2022-09-23 14:51:57 +02:00
Aevann1 b980c63d1b Revert "created_utc refactor"
This reverts commit 791aececbb.
2022-09-19 22:40:33 +02:00
Aevann1 791aececbb created_utc refactor 2022-09-19 21:24:16 +02:00
Aevann1 f54791cc4c remove categories 2022-09-19 20:04:30 +02:00
Aevann1 0c32d56cd6 casino + style shit 2022-09-05 01:15:37 +02:00
Snakes c506ff0c40 Add admin mute for user reports and modmail. 2022-09-01 17:30:15 -04:00
Aevann1 f7356c0843 censor post titles in /log 2022-08-21 19:08:48 +02:00
Snakes 1411018f8d Add post categories.
Implemented for LGB but can likely be used for WPD and other future
sites. Similar to a reddit post flair. Provides:
  - Admin panel for Category management.
  - Category selection on post submission.
  - 'Recategorize' post action.
2022-08-07 02:57:30 -04:00
Snakes 2845e0961b Turn login-gate of 1568ec0162 into admin toggle. 2022-08-05 16:42:22 -04:00
Aevann1 f6bf7400c3 do this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2298056?context=8#context 2022-07-13 17:20:10 +02:00
Aevann1 b617321529 move all env-getting to .const 2022-07-08 18:21:13 +02:00
Aevann1 45437997c8 show log timestamp in local timezone 2022-07-03 10:38:19 +02:00
Aevann1 d0d15c319a Poll rework (#312)
* poll rework

* forgot to do joinedload on comments

* Fix logic errors with voting, SQL syntax.

Kitchen sink commit from review of poll-rework changes:
  1. Fix seed-db.sql syntax error.
  2. Fix SQL patch file duplication of *submissions* tables rather
     than one set of submissions and one for comments.
  3. Start makeshift SQL patch folder, since this is a large change
     that contributors may wish to apply to their local instances.
  4. Fix checkbox (non-`exclusive`) polls being unable to be
     unchecked. For consistency with `exclusive` polls, they should.
  5. Fix changing the option of an `exclusive` poll when both
     exclusive and non-exclusive options are present in one comment/
     post causing the non-exclusive options to become unchecked.
     (which, by my reading of SQLAlchemy `Query.one_or_none()`
     really could break quite badly in some cases).

* link relationships with their counterparts

* small modification to poll unchecking

Co-authored-by: TLSM <duolsm@outlook.com>
2022-07-02 08:48:04 +02:00
Aevann1 cf827bdf38 unhide some mod actions from non-jannies 2022-06-13 15:37:46 +02:00
Snakes b94e71450f Add un-holing to hole report command. 2022-06-09 02:42:52 -04:00
Snakes e32a4bda48 Add set/unset nsfw on comment to modlog. 2022-05-30 08:00:16 -04:00
Aevann1 851eff0f18 sdf 2022-05-28 19:50:48 +02:00
Snakes b6339ca95f Add exact timestamps to mod log.
Modlog only had ModAction.age_string visible. However, we sometimes
need to know the exact time an action was taken.
Adds `created_string` to ModAction, and exposes that to log.html.
2022-05-16 11:33:26 -04:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 f3743d717d fds 2022-04-18 23:11:30 +02:00
Aevann1 68db7fc23e fds 2022-04-13 16:32:03 +02:00
Aevann1 5a6ac9d8b2 fsd 2022-04-12 22:45:07 +02:00
Aevann1 579e81de2a site settings 2022-04-12 21:05:50 +02:00
Aevann1 17852d30e6 fart mode 2022-04-12 19:29:52 +02:00
Aevann1 7713fd891d fsd 2022-04-02 19:11:35 +02:00
Aevann1 6b58661855 tabs 2022-04-01 20:38:31 +02:00
Aevann1 0293f60453 fart 2022-03-19 21:15:13 +02:00
Aevann1 7910da3519 gfd 2022-03-19 20:13:12 +02:00
Aevann1 549c9ba394 arrr 2022-03-19 20:12:14 +02:00
Aevann1 c7656d0042 t 2022-02-28 22:14:56 +02:00
Aevann1 bf3e14bba3 big big chungus big chungus big chungus 2022-02-13 03:08:12 +02:00
Aevann1 22eaa9e7f8 xvc 2022-02-13 01:10:29 +02:00
Aevann1 ac2e06b10f fgd 2022-02-13 00:23:41 +02:00
Aevann1 baef602163 sdf 2022-02-05 10:42:54 +02:00
Aevann1 d301d733c5 fsd 2022-02-04 20:35:39 +02:00
Aevann1 e3fcfbf690 gdf 2022-02-04 15:11:14 +02:00
Aevann1 7d5fc1b090 sdf 2022-01-30 15:40:11 +02:00
Aevann1 b7311c61a3 dfs 2022-01-29 18:10:31 +02:00
Aevann1 716b4ee2ea czx 2022-01-28 22:02:35 +02:00
Aevann1 9c0e14c642 fd 2022-01-28 06:37:40 +02:00
Aevann1 775b378de2 cxvcvx 2022-01-21 19:21:46 +02:00
Aevann1 81078c5877 fds 2022-01-19 11:07:16 +02:00
Aevann1 112366013a under 2022-01-09 17:25:45 +02:00
Aevann1 b69199054c under attack 2022-01-09 17:15:02 +02:00
Aevann1 9fb2626003 df 2022-01-08 08:52:34 +02:00
Aevann1 94232d5d90 bvcbc 2022-01-08 08:41:40 +02:00
Aevann1 633a7131e3 fdsfs 2022-01-02 20:25:24 +02:00