Commit Graph

2090 Commits

Author SHA1 Message Date
towards-a-new-leftypol 495949666d Add opus to supported list of extensions 2024-05-02 17:06:07 -04:00
towards-a-new-leftypol 6e8d85d5e7 Fix flag list ordering in config 2024-04-09 03:42:54 -04:00
towards-a-new-leftypol 669429863a Fix previous commit 2024-04-09 03:37:07 -04:00
towards-a-new-leftypol 9293f38bf5 Add flag 2024-04-09 03:29:23 -04:00
towards-a-new-leftypol 93b8d216b1 API - threads.json last_modified is now really the timestamp of the last post, put bump time in a new field 'bump' 2024-03-31 17:22:42 -04:00
towards-a-new-leftypol 9fbe71f1f9 Rename sidebar heading to Boards for the boards list 2024-03-17 17:40:14 -04:00
Jon 61166cb4f1 instance-config.php: update shortener regex 2024-03-15 16:58:01 -04:00
towards-a-new-leftypol 10015def12 Add ip member variable to filter class 2024-03-14 17:30:39 -04:00
towards-a-new-leftypol 3158ce40cd Rate limit opening posts for specific ip (basically copy flood-time-any filter and add ip condition) 2024-03-14 17:11:36 -04:00
towards-a-new-leftypol e9228892fa ajax POST: return whole thread 2024-02-26 20:13:29 +00:00
towards-a-new-leftypol 408e9ce30e Fix posting images
- since we return the new post html now, we need the Post class to
  not try and decode files as json, since we're not loading that class
  from the db anymore.
2024-02-26 20:13:29 +00:00
towards-a-new-leftypol da03753a72 thread_updater.js: listen to ajax_after_post event 2024-02-26 20:13:29 +00:00
Jon 68652d29a3 inc/instance-config.php: fix typo 2024-02-26 20:13:29 +00:00
Jon 497a0c9208 inc/instance-config.php: replace legacy with new autoreloader 2024-02-26 20:13:29 +00:00
towards-a-new-leftypol c3c6c8f9f1 POST - return new post in json
- handle post now returns the new post you just created in the
  response (if json_response is set, which it is when submitting
  the form with ajax)
2024-02-26 11:37:38 -05:00
towards-a-new-leftypol 0fa2347552 Fix url shortener regex 2024-02-25 22:46:39 -05:00
Jon 257626dcfc inc/instance-config.php: add lcn scripts 2024-02-20 14:56:22 -05:00
towards-a-new-leftypol ac29d60517 Fix url shortener regex 2024-02-18 13:45:32 -05:00
towards-a-new-leftypol 3a1a8cdc47 Change welcome message links to be horizontal (stylistic change) 2024-02-12 06:27:06 -05:00
towards-a-new-leftypol fc6a5a1161 Don't need download-original.js active anymore 2024-02-05 05:08:59 -05:00
towards-a-new-leftypol 8bcf37bf02 Remove custom attributes from body before sending to spamnoticer 2024-02-03 20:00:55 -05:00
towards-a-new-leftypol 51d6374d85 increase flood_time_any to 120 2024-01-28 11:41:29 -05:00
towards-a-new-leftypol 7a7cd1ab28 Fix bug where delete was not working on ban page
- it was only working on the ban&delete page
2024-01-27 19:13:42 -05:00
towards-a-new-leftypol b3effdf422 Fix a bug where we were not passing an integer but an array instead
- I'm not sure how bans worked otherwise
2024-01-27 18:38:01 -05:00
towards-a-new-leftypol 7608eb0844 Raise time between thread creation to 60 seconds 2024-01-27 15:16:43 -05:00
towards-a-new-leftypol 2de31d7fa9 Change matrix link in homepage sidebar to use talk.leftychan.net instead of app.element.io 2024-01-24 13:23:52 -05:00
towards-a-new-leftypol 7b1fab8b2b Make url shortener detection in body match a slightly longer tld 2024-01-18 13:41:23 -05:00
towards-a-new-leftypol 0a30b856ce Relax url shortener regex (http(s):// part is optional) 2024-01-11 12:52:18 -05:00
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