towards-a-new-leftypol
9f08640a73
Disallow url shorteners using filters
2023-12-17 12:45:40 +00:00
towards-a-new-leftypol
483f0c8b4f
Fix filters, disallow urls in name/subj/email using filters
2023-12-17 12:29:55 +00:00
towards-a-new-leftypol
29349e4083
Fix unsupported image formats were making it into spamnoticer
...
- Unspported images were getting denied by the board, but
only after they have gotten into spamnoticer
- Refactor the code a little bit to check image mimetypes first
2023-12-17 05:58:37 -05:00
towards-a-new-leftypol
3197fb726e
Fix spelling in config
2023-12-14 16:44:24 -05:00
towards-a-new-leftypol
7d1c8a745e
Add link to gitea instance in homepage sidebar
2023-12-12 23:25:42 -05:00
towards-a-new-leftypol
8839bd6e7a
Add to Post/Thread class props (bugfix)
2023-12-09 07:23:16 +00:00
towards-a-new-leftypol
6d71f0e535
Fix more dynamic property assignment being deprecated errors
2023-12-09 07:12:33 +00:00
towards-a-new-leftypol
80ca1d7db0
Continue porting code to php 8.2
...
- Declare class member variables where needed, they can't be dynamically
added later
- Remove dead code (remote.php and gettext polyfill)
2023-12-09 06:24:56 +00:00
towards-a-new-leftypol
6021d41d39
indenting fix (whitespace)
2023-12-07 06:24:48 +00:00
towards-a-new-leftypol
8478ee430f
whitespaces
2023-12-07 06:17:29 +00:00
towards-a-new-leftypol
974af939f9
php - fix string escape deprecation warning:
...
- ${varname} should be written as {$varname}
2023-12-07 03:09:18 +00:00
towards-a-new-leftypol
6808f65ef7
fix Creation of dynamic property is deprecated
2023-12-07 02:46:49 +00:00
towards-a-new-leftypol
291072dfd2
Post function - check if we have a delete_token
...
- some board functions can create automatic posts using the post
function, such as when you move a thread to another board and it
replies with the new thread's id. it doesn't make sense for these
posts to have a delete_token, since they shouldn't be in spamnoticer,
and a user will never delete them since it is no user's post.
- save it as null if it's not present
2023-11-21 19:47:21 -05:00
towards-a-new-leftypol
f9e8390451
Fix a bug with reporting posts to spamnoticer
...
- Posts that have deleted files were not able to be reported
as spam. Add checks in the spamnoticer code when building the request.
2023-10-18 15:03:57 -04:00
towards-a-new-leftypol
505d62d872
Spamnoticer - more guards against null files field
2023-10-11 13:54:51 -04:00
towards-a-new-leftypol
18f63222f8
Spamnoticer - addToSpamNoticer, guard against null files field
2023-10-11 13:50:46 -04:00
towards-a-new-leftypol
e25908d87e
Spamnoticer - manual ban: check if files field is set
2023-10-11 13:47:52 -04:00
towards-a-new-leftypol
9d48a5bbe1
disable anti-bot (prevents some users from posting)
2023-10-01 13:29:14 -04:00
towards-a-new-leftypol
4d6ee132dc
relax posting rules for single ip, notice spam after doing filters
2023-09-25 13:49:33 -04:00
towards-a-new-leftypol
45dc42692f
print_err only when spamnoticer didn't succeed (reduce noise)
2023-09-25 00:37:55 -04:00
towards-a-new-leftypol
fb31845bde
enable spamnoticer
2023-09-24 22:21:24 -04:00
towards-a-new-leftypol
1709e6e8e2
disable debug
2023-09-24 21:17:27 -04:00
towards-a-new-leftypol
f370b45c70
Fix twig date filter
...
- using strftime instead of gmstrftime caused the times to be displayed wrong
- copy the code for a shim of strftime, modify it to become gmstrftime
2023-09-25 01:12:27 +00:00
towards-a-new-leftypol
9dbfcf9d42
remove ancient configs
2023-09-25 00:40:09 +00:00
towards-a-new-leftypol
e60d79f1fd
disable spam_noticer for now
2023-09-24 19:15:18 -04:00
towards-a-new-leftypol
24923c6216
add link to edit news entries on mod dashboard
2023-09-24 19:14:33 -04:00
towards-a-new-leftypol
786773a2a8
remove print_err statements in post (not needed)
2023-09-24 14:17:18 -04:00
towards-a-new-leftypol
81831505e2
Fix up config for production
2023-09-21 15:19:03 -04:00
towards-a-new-leftypol
7ed6bb7871
much better messaging from spamnoticer, don't just dump the log
2023-09-21 05:42:42 +00:00
towards-a-new-leftypol
d6831782b5
Only send thread_id property if we have a thread
...
Null values are not allowed
2023-09-08 22:57:42 +00:00
towards-a-new-leftypol
3fa80c6e39
Add permissions checks for spam_noticer ui
2023-09-07 20:22:10 +00:00
towards-a-new-leftypol
598aed5b7e
enable ant-bot
2023-09-05 18:47:56 +00:00
towards-a-new-leftypol
490c766a06
Print statements
2023-09-05 14:26:53 -04:00
towards-a-new-leftypol
a6cd12ed9f
Fixes: ban page spamnoticer logic fix, don't call setcookie with null arg
2023-09-05 14:26:53 -04:00
towards-a-new-leftypol
7c43eca49d
PHP8: Fix warnings
2023-09-05 14:26:53 -04:00
towards-a-new-leftypol
39e5960369
Make spamnoticer aware of users deleting their own posts
2023-09-05 14:26:53 -04:00
towards-a-new-leftypol
29b45e7a11
Add delete_token column to post_* tables
...
- stores the delete_token uuid for telling spamnoticer
that the post has been deleted
- passes the token to spamnoticer
2023-09-05 14:26:46 -04:00
towards-a-new-leftypol
3ed80a4cd3
Ban&Delete page can now also post to spamnoticer
2023-09-05 14:25:10 -04:00
towards-a-new-leftypol
a0fc3956fe
Sends POST request to spamnoticer /add_post_to_known_spam
2023-09-05 14:25:10 -04:00
towards-a-new-leftypol
824fd148c9
spamnoticer: include marking body as spam when parsing
2023-09-05 14:25:10 -04:00
towards-a-new-leftypol
a56f585740
spamnoticer WIP: parse new values being posted to mod_ban_page
2023-09-05 14:25:10 -04:00
towards-a-new-leftypol
a45f3f34a3
SpamNoticer: render out post on ban page with extra checkboxes to allow flagging different parts of it for spamnoticer
2023-09-05 14:25:10 -04:00
towards-a-new-leftypol
16286aa62b
In ban form, display the post so we can select which parts of it to mark as spam (for spamnoticer)
2023-09-05 14:25:10 -04:00
towards-a-new-leftypol
0aa7417c09
formatting: retab functions
2023-09-05 14:25:06 -04:00
towards-a-new-leftypol
1c677e62ed
Small fixes to fix rebuilding
...
- use JSMin from composer (needed an upgrade to work anyway)
2023-09-05 14:24:06 -04:00
towards-a-new-leftypol
70847aeff3
formatting: retab some files
2023-09-05 14:24:06 -04:00
towards-a-new-leftypol
3d48ccf7e2
More fixes after upgrading to php8 broke everything
...
- call openBoard inside of catalog build. I have no idea
how it could have been defined before because it depends on a global
variable $board which seems to be only globally defined by openBoard in
functions.php, but that's called later. the fix is to just call
openBoard, that's what tinyboard does.
(somehow the code expected the uri to already be set)
2023-09-05 14:24:06 -04:00
towards-a-new-leftypol
d79a8ea78f
Twig 3: Use verbatim instead of raw tag in templates
...
- also ensure we don't pass a null in one of the functions in
functions.php
2023-09-05 14:24:06 -04:00
towards-a-new-leftypol
6b129556ef
Autoformat Tinyboard.php
2023-09-05 14:24:06 -04:00
towards-a-new-leftypol
4cfbec0504
Fix Tinyboard Twig extension date filter
2023-09-05 14:24:06 -04:00