Shish
bbea373c19
[core] use ArrayAccess rather than dynamic props for extra columns on the images table
2024-01-15 18:52:07 +00:00
Shish
4e789040a0
[core] don't pass strings to functions that want ints
2024-01-15 14:21:33 +00:00
Shish
802ff336a2
[core,tests] even more types
2024-01-15 14:08:11 +00:00
Shish
bb9ab613ce
[everything] bulk set event handler return types to void
2024-01-15 11:52:35 +00:00
Shish
7b9201cb42
[core] Database::with_savepoint()
2024-01-09 21:59:24 +00:00
Shish
b2f67363a1
[core] roll back database transaction when upload fails - fixes #1007
2024-01-09 21:01:10 +00:00
Shish
9f002b6bf7
typed arrays
2024-01-01 03:30:21 +00:00
Shish
a5c6f1321b
refactor search a little and add much better testing
2023-12-14 17:04:16 +00:00
Shish
fd1bb21f9d
bumps
2023-11-11 22:05:28 +00:00
Shish
689b2b13af
send_event(T) -> T
2023-02-04 20:50:26 +00:00
Shish
ff71a89948
fixes
2023-02-03 16:58:16 +00:00
Shish
5a64e8729b
nits
2023-01-11 11:15:26 +00:00
Shish
bce2d55744
Namespaces are one honking great idea—let's do more of those!
2023-01-10 22:44:09 +00:00
Shish
a04bc2e7e4
php8.1 gogogo
2022-10-28 01:45:35 +01:00
Shish
3d9e32e919
new php-cs-fixer
2021-12-14 18:32:47 +00:00
Shish
77f7121e26
drop php7.3 support, make use of 7.4 features
2021-03-14 23:43:50 +00:00
Shish
3f5930b4cb
simplify and add tests for upload (and replace) path
2020-10-28 20:51:34 +00:00
Matthew Barbour
984c9702ec
The great MIMEing
2020-06-25 00:42:34 +01:00
Matthew Barbour
fc3c6625bd
Changed references to /tmp to sys_get_temp_dir
2020-06-24 16:47:22 +01:00
Shish
1597eff082
lint fixing
2020-03-13 09:23:54 +00:00
Shish
40ab91f8ea
remove redundant scoreql_to_sql
2020-02-01 22:44:50 +00:00
Shish
60dda96fd2
nits
2020-01-26 16:38:13 +00:00
Shish
9eb5acf2dc
use strict types
2020-01-26 16:27:56 +00:00
Shish
d7a2ca9ddc
remove SCORE_STRNORM - everyone supports LOWER now
2019-12-15 16:07:46 +00:00
Shish
55c6854003
formatting
2019-11-02 19:57:34 +00:00
Shish
30698fefdc
remove a bunch of dead variables and things
2019-10-02 11:23:57 +01:00
matthew
cf8ed3b134
Added UserLoginEvent
2019-09-29 14:21:23 +01:00
Matthew Barbour
88e6e68d79
Changed omitted related tags (like tagme) to be powered by a setting, allowing any performance-impacting (or just not useful in this context) tags to be omitted
...
Further tag list performance improvements
TagListConfig constants
2019-09-26 15:46:28 +01:00
Matthew Barbour
de98e86938
ExtensionInfo conversions what have I done
2019-08-07 15:40:01 -05:00
Matthew Barbour
cb1e9c0075
Permissions to constants
2019-08-01 08:07:05 -05:00
Matthew Barbour
3859e27839
New Graphics extension
...
Added constants to several extensions
2019-07-08 08:07:02 -05:00
Matthew Barbour
826c623538
PageMode constants
2019-06-18 21:04:31 -05:00
Shish
bf473f6d51
more lint fixes
2019-05-29 18:23:29 +01:00
Shish
34b05cca7c
PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...
2019-05-28 17:59:38 +01:00
Shish
5ec3e89884
php7.1 all the things
2019-05-28 17:31:20 +01:00
jgen
3ffb2da91c
More checking to ensure tags is an array.
2017-05-13 23:18:47 -07:00
jgen
7ebe301ffd
Check if already an array before exploding.
2017-05-13 18:01:31 -07:00
jgen
f492c6c2c3
Ensure that the Image object tag_array and the metadata array tags are always arrays.
2017-05-12 00:57:50 -07:00
Scrutinizer Auto-Fixer
1caef6d633
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2017-03-12 23:45:38 +00:00
jgen
ede2fcf4eb
More linting and fixing
2017-03-08 23:52:31 -08:00
Shish
7be951b271
Convert tags from user-supplied string to array once, on input
...
This results in a fuckton of refactoring and code cancelling out
other code -- we no longer have a whole bunch of places trying
to support string params and array params, and doing their own
esaping and unescaping, never being quite sure if the data they've
been passed is escaped or not.
Also adds a bunch of type hinting, since we can now know what
data we're dealing with better.
2016-07-30 22:11:49 +01:00
Shish
dc10a18086
lots of minor doc tweaks, type hints, etc
2016-06-19 17:41:40 +01:00
Shish
d30665d274
more deduping
2015-09-27 21:09:27 +01:00
Shish
35a4f385b3
phpstorm tidying
2015-09-12 11:43:28 +01:00
Diftraku
3af95b5ebe
Fix duplicate handling
...
Now with 17% less fat:
* Moved validation logic into OuroborosPost for sanity
* Added sanity checks for OuroborosPost values
* Changed defaults to be more sane (mainly tags)
* OuroborosPost now accepts an MD5 hash along the metadata (like it
should!)
* Fixed dupe handling logic
2015-01-05 13:47:53 +02:00
jgen
298344048c
Make these functions public to prevent scrutinizer from complaining.
2014-04-26 00:27:16 -04:00
Diftraku
7ac61f4234
Special chars in tags barf filter_var
...
Due to how FILTER_SANITIZE_STRING works, if you had special chars in
your tags (eg. <3 or !) the string would be cut before the offending
character(s) and in worst case, result in no tags passing to the API
2014-04-10 04:11:43 +03:00
Diftraku
85303d232e
Fixing stuff with API output being output twice
...
Also some code formatting and a redirect from post/show for clients such
as CartonBox so you can actually view the image after opening it in the
browser on the client.
2014-01-15 23:28:40 +02:00
Diftraku
1a25014564
Derp, forgot I was actually giving the post[file] to OuroborosPost, making assert fail for null
2013-12-03 05:51:55 +02:00
Diftraku
095f743d57
Checking if the user can actually create new posts, seems the base DataHandlerExtension doesn't do this. Also forgot to update documentation!
2013-12-03 01:07:27 +02:00