Commit graph

30 commits

Author SHA1 Message Date
0d0bd041a4 Route registration with attributes! 2023-09-08 00:13:30 +00:00
b2e30f4e49 Merge SharpChat permission set into the Misuzu permission system directly. 2023-09-06 20:44:28 +00:00
df970df252 Moved authentication related macros out of MisuzuContext. 2023-09-06 20:06:07 +00:00
ade2460b92 Moved user related stuff into its own context object. 2023-09-06 13:50:19 +00:00
618a3c31d9 Syntactic sugar for mass route registration. 2023-09-06 11:59:44 +00:00
c0dbd36cbe Removed html_colour function, moved renamed DateCheck to Tools and moved the country names function into it and use new callable syntax. 2023-08-31 14:55:39 +00:00
349cc237c5 Rewrote permissions system. 2023-08-30 22:37:21 +00:00
f033e27ab5 Fixed emoticon ordering in chat. 2023-08-07 12:59:08 +00:00
f394f372c1 Made data source argument lists for News, Changelog, Comments and Emotes consistent with the rest. 2023-08-05 13:50:15 +00:00
9ae2a6a39b Changed the way msz_auth is handled.
Going forward msz_auth is always assumed to be present, even while the user is not logged in.
If the cookie is not present a default, empty value will be used.
The msz_uid and msz_sid cookies are also still upconverted for some reason but are no longer removed even though there's no active sessions that can possibly have those anymore.
As with the previous change, shit may be broken so report any Anomalies you come across, through flashii-issues@flash.moe if necessary.
2023-08-03 01:35:08 +00:00
e000c21987 Rewrote the user information class.
This one took multiple days and it pretty invasive into the core of Misuzu so issue might (will) arise, there's also some features that have gone temporarily missing in the mean time and some inefficiencies introduced that will be fixed again at a later time.
The old class isn't gone entirely because I still have to figure out what I'm gonna do about validation, but for the most part this knocks out one of the "layers of backwards compatibility", as I've been referring to it, and is moving us closer to a future where Flashii actually gets real updates.
If you run into anything that's broken and you're inhibited from reporting it through the forum, do it through chat or mail me at flashii-issues@flash.moe.
2023-08-02 22:12:47 +00:00
10ec424a4f Rewrote Sessions backend. 2023-07-28 20:06:12 +00:00
a97955b7e2 Split Sharp Chat kick and ban permissions based on the Misuzu warnings and bans permissions. 2023-07-26 22:46:35 +00:00
60cc6643a0 Added new banning system.
it actually works and isn't confusing this time around!
2023-07-26 18:19:48 +00:00
8c52338751 Removed the concept of silencing.
Nothing really implemented it properly or checked for it and the places that did check just handled it as a slightly softer ban.
It's pretty obvious that the existence of this feature was directly taken from osu! where the differentation between a ban and a silence probably makes more sense, though even there Silences are just non-permanent bans, so like why does this exist lol?
Well, it doesn't anymore! Hopefully chat will upgrade successfully because I let it get 18 commits behind :D
2023-07-23 21:47:15 +00:00
20c528a88c Normalised custom exception usage in user classes.
Also updated the Index library to include the MediaType fix.
2023-07-22 15:02:45 +00:00
540b886b18 Removed old formats of and unused SharpChat endpoints. 2023-07-18 22:33:13 +00:00
31cb6ab82d Fixed various errors and oversights caught by phpstan. 2023-07-18 22:24:23 +00:00
8339892559 Config class overhaul. 2023-07-18 21:48:44 +00:00
142ccc3f01 Rewrote backend for emoticons.
Manage actually works this time!!!
2023-07-12 21:52:55 +00:00
24e4ab980c Updated authentication token format. 2023-05-21 18:15:04 +00:00
d2f9328979 Sharp Chat interop updates. 2023-02-08 00:06:15 +00:00
59a09cf4ac Use interface constants instead of a dedicate enum class for config types. 2023-01-06 20:50:41 +00:00
82129ce9e6 Updated handler classes to use the new IRouter interface. 2023-01-06 20:22:03 +00:00
bc03c0756c Remove IPAddress::remote and all implicit resolving of the request remote address. 2023-01-05 18:33:03 +00:00
901add2ce9 Replaced Misuzu Colour library with the Index ones. 2023-01-02 23:48:04 +00:00
5631f464d2 Restructured config handler. 2023-01-01 20:23:53 +00:00
3dafc519d8 Allow specifying a hash key in the config rather than a path for Sharp Chat authentication. 2022-07-04 23:21:05 +00:00
34bfb49a38 More cleanup. 2022-06-10 20:48:32 +02:00
7d6b94294f Converted Sharp Chat routes to Index. 2022-06-10 20:26:24 +02:00