Commit Graph

19518 Commits

Author SHA1 Message Date
84399a76e3 [ENTITY] Add 'normalized_nickname' to GSActor, the result of Nickname::normalize, so we can make sure we don't have very similar nicknames duplicated 2021-05-05 12:46:08 +00:00
4f0bdade45 [DEPENDENCIES] Add doctrine/doctrine-fixtures-bundle, which allows populating the database in the testing environment 2021-05-05 12:46:08 +00:00
d5db350595 [TOOLS][TESTS] Adjust configuration for testing environment 2021-05-05 12:45:58 +00:00
f5fcfe628e [TESTS] Raise App\Util\HTML test coverage to 100% 2021-05-02 21:02:43 +00:00
fde7b87c65 [TESTS] Raise App\Util\Bitmap test coverage to 100% 2021-05-02 20:47:15 +00:00
f841e5e0dd [TESTS] Raise App\Util\Common test coverage to 100% 2021-05-02 20:42:25 +00:00
39ac043d59 [ENTITY] Add uniqueness constraint to Attachment::file_hash 2021-05-02 15:48:33 +00:00
041d19a22d [ATTACHMENTS] Don't store an attachment if it's a dupplicate, reuse it 2021-05-02 15:48:33 +00:00
b99fab00e9 [UTILS][TemporaryFile] Change way TemporaryFile takes arguments and it's internal implementation 2021-05-02 15:48:33 +00:00
88e84f2dc5 [UTIL] Fix bugs found in App\Util\Formatting by tests 2021-05-02 15:28:56 +00:00
16055c7055 [TESTS] Add tests increasing coverage of App\Util\Formatting to 100% 2021-05-02 15:28:56 +00:00
15c406a348 [TESTS] Move testing container's DB and Redis to different ports, so it can be used at the same time as the regular containers 2021-05-02 15:28:56 +00:00
eff703ca21 [TESTS] Add test container with Xdebug and allow for generation of coverage reports with 'make test' 2021-05-02 13:31:04 +00:00
2e943293e6 [ATTACHMENTS] Do not create thumbnails for attachments with mimetype different from 'image|video' 2021-05-02 00:50:16 +01:00
6aea20db05 [Embed] Do not create AttachmenThumbnail 2021-05-02 00:49:10 +01:00
a5a2032e75 [ENTITY] Fix entity->has to access private properties with closure bindTo 2021-05-02 00:14:24 +01:00
c948ca6178 [CSS][Network] Minor fixes concerning attachment representation (centering and width) 2021-05-02 00:00:03 +01:00
676210f76a [ATTACHMENTS] Follow URL redirects and don't duplicate attachments 2021-05-02 00:00:03 +01:00
af4b0113ba [ATTACHMENTS] Respect config for smart crop 2021-05-02 00:00:03 +01:00
3f565442d2 [Posting] Don't sanitize on storage
We prefer to have the original input in database and sanitize on output when appropriate
2021-05-02 00:00:03 +01:00
4397d12fa4 [AUTOGENERATED] Update auto generated code 2021-05-02 00:00:03 +01:00
c58d7e470a [CORE][ImageEncoder] Add width and height back in attachment entity and allow for differently sized thumbs
The strategy adopted involves predicting the thumb size as we did in v2 before having vips resize
2021-05-02 00:00:02 +01:00
5a40d1f3e3 [Embed] Fix some bugs and change AttachmentEmbed::url to ::media_url 2021-05-01 23:58:49 +01:00
ced6e236ce [ATTACHMENTS][GSFile] Rename ValidateAndStore functions 2021-05-01 23:57:51 +01:00
d5a7f2122a [Embed] Local config 2021-05-01 23:57:51 +01:00
d0d98a611d [DEPENDENCIES] Add ext-curl 2021-05-01 23:57:51 +01:00
650bfec699 [ATTACHMENTS] In sendFile, check that file exists or show a custom exception 2021-05-01 13:02:14 +00:00
6d842d60c5 [ENTITY] Change foreign key definition to new format for cover and profile_color tables 2021-05-01 12:50:49 +00:00
e0e1dca0f0 [DOCUMENTATION] Add database diagram to developer documentation 2021-05-01 12:49:04 +00:00
6374e30475 [CSS][Network] Improve attachment representation
Part of why we have thumbnails with a specific size is so that they are in the proper theme size
2021-04-30 23:47:46 +01:00
0086d8dec4 [CSS][Left] Vertical scroll on left menu when it doesn't fit the screen 2021-04-30 23:43:34 +01:00
6910620d59 [CSS][Network] Fix horizontal menu on smaller screens 2021-04-30 23:40:32 +01:00
0629c1434d [UTIL][Formatting] Add twigRenderFile 2021-04-30 23:08:08 +01:00
120571fa42 [DOCUMENTATION] Add high level code walkthrough to developer docs 2021-04-30 23:08:08 +01:00
d9a3ecb116 [Posting] Add missing default visibility option 2021-04-30 23:08:08 +01:00
1bf5e9d117 [ImageEncoder][FileQuota] Move quota enforcement to it's own plugin, so it can be easily shared and disabled 2021-04-30 23:08:08 +01:00
aa28251c11 [TEMPLATES] Fix identation 2021-04-30 23:08:08 +01:00
c2f6665cce [AttachmentShowRelated] Move Attachment related to plugin 2021-04-30 23:08:08 +01:00
b196af5f36 [SECURITY] We can't really show a stream for this, was a nice concept, but not properly doable without requiring JS 2021-04-30 23:08:08 +01:00
ebfa0e2240 [Avatar][Embed] Change use of TemporaryFile::getPath to getRealPath 2021-04-30 23:08:08 +01:00
365a7b436f [ImageEncoder] Implement attachment validation for images. This limits the maximum dimensions of the file, enforces a per file, per user and per user-month size quota and fixes the title if it's a filename, by replacing the extension to the new one 2021-04-30 23:08:08 +01:00
93e1e4b7a9 [ENTITY] Add field size to attachments, used for quota calculations 2021-04-30 23:08:08 +01:00
e5ee31a2fe [UTIL] Add option for setting a file suffix on TemporaryFile constructor and add missing TemporaryFileException 2021-04-30 23:08:08 +01:00
e32d8711d6 [CONFIG] Add attachments/max_{width,height} config option, which is used as maximum dimensions when validating attachments 2021-04-30 23:08:08 +01:00
78a17425f9 [DEPENDENCIES] Add oroinc/doctrine-extensions, which provides cross database platform date functions 2021-04-30 23:08:08 +01:00
94b100dc06 [CSS] Refactor Right Panel style 2021-04-30 23:08:02 +01:00
75c494dca1 [TEMPLATES] Add dynamic blocks to right panel 2021-04-30 23:05:39 +01:00
f95b8ab226 [CSS] Fix invisible checkboxes 2021-04-29 20:36:50 +00:00
6819dd9fb7 [TEMPLATES] Minor refactoring, extending left was weird 2021-04-29 20:36:50 +00:00
c57a8481b1 [Avatar] Implement avatar deletion 2021-04-29 20:36:50 +00:00