Hugo Sales
6d842d60c5
[ENTITY] Change foreign key definition to new format for cover and profile_color tables
2021-05-01 12:50:49 +00:00
Hugo Sales
e0e1dca0f0
[DOCUMENTATION] Add database diagram to developer documentation
2021-05-01 12:49:04 +00:00
Diogo Peralta Cordeiro
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
Diogo Peralta Cordeiro
0086d8dec4
[CSS][Left] Vertical scroll on left menu when it doesn't fit the screen
2021-04-30 23:43:34 +01:00
Diogo Peralta Cordeiro
6910620d59
[CSS][Network] Fix horizontal menu on smaller screens
2021-04-30 23:40:32 +01:00
Diogo Peralta Cordeiro
0629c1434d
[UTIL][Formatting] Add twigRenderFile
2021-04-30 23:08:08 +01:00
Hugo Sales
120571fa42
[DOCUMENTATION] Add high level code walkthrough to developer docs
2021-04-30 23:08:08 +01:00
Hugo Sales
d9a3ecb116
[Posting] Add missing default visibility option
2021-04-30 23:08:08 +01:00
Hugo Sales
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
Diogo Peralta Cordeiro
aa28251c11
[TEMPLATES] Fix identation
2021-04-30 23:08:08 +01:00
Diogo Peralta Cordeiro
c2f6665cce
[AttachmentShowRelated] Move Attachment related to plugin
2021-04-30 23:08:08 +01:00
Diogo Peralta Cordeiro
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
Hugo Sales
ebfa0e2240
[Avatar][Embed] Change use of TemporaryFile::getPath to getRealPath
2021-04-30 23:08:08 +01:00
Hugo Sales
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
Hugo Sales
93e1e4b7a9
[ENTITY] Add field size to attachments, used for quota calculations
2021-04-30 23:08:08 +01:00
Hugo Sales
e5ee31a2fe
[UTIL] Add option for setting a file suffix on TemporaryFile constructor and add missing TemporaryFileException
2021-04-30 23:08:08 +01:00
Hugo Sales
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
Hugo Sales
78a17425f9
[DEPENDENCIES] Add oroinc/doctrine-extensions, which provides cross database platform date functions
2021-04-30 23:08:08 +01:00
Diogo Peralta Cordeiro
94b100dc06
[CSS] Refactor Right Panel style
2021-04-30 23:08:02 +01:00
Diogo Peralta Cordeiro
75c494dca1
[TEMPLATES] Add dynamic blocks to right panel
2021-04-30 23:05:39 +01:00
Diogo Peralta Cordeiro
f95b8ab226
[CSS] Fix invisible checkboxes
2021-04-29 20:36:50 +00:00
Diogo Peralta Cordeiro
6819dd9fb7
[TEMPLATES] Minor refactoring, extending left was weird
2021-04-29 20:36:50 +00:00
Hugo Sales
c57a8481b1
[Avatar] Implement avatar deletion
2021-04-29 20:36:50 +00:00
Hugo Sales
ec0c551bb3
[AVATAR] Move avatar settings page to Avatar component
2021-04-29 18:14:49 +00:00
Hugo Sales
f17d4d2d92
[Embed] Use Formatting utilities rather than substr and such
2021-04-29 18:14:49 +00:00
Diogo Peralta Cordeiro
255055d149
[Embed] Add docblock to handle function to pass pre-commit hook
2021-04-29 17:42:31 +01:00
Diogo Peralta Cordeiro
55c4ad40cd
[ENTITY][GSActor] Fix getAvatarUrl method
2021-04-29 17:42:06 +01:00
Diogo Peralta Cordeiro
5fbc079c55
[RIGHT] Introduce component abstraction
2021-04-29 17:40:19 +01:00
Diogo Peralta Cordeiro
22c79db540
[VIEWS] Minor proofreading of templates and css
2021-04-29 17:08:09 +01:00
Hugo Sales
bb56b24d8f
[ATTACHMENTS] Restrict thumbnail generation to allowed sizes. Defaults to only configured sizes, but can be extended with the event 'GetAllowedThumbnailSizes'. The intention is to prevent DoS attacks, since handling a thumbnail request is a relatively slow process
2021-04-28 21:53:02 +00:00
Hugo Sales
b2841cb5fc
[UI] Fix 'hide_attachments is not defined' error
2021-04-28 21:50:55 +00:00
Hugo Sales
f264cd6125
[ATTACHMENTS] Add controller and templates for the attachment show page, which shows extra info about an attachment, such as related notes and tags
2021-04-28 21:25:35 +00:00
Hugo Sales
d49de9d35e
[CORE] Typo in GSFile and slight Twig weirdness in base template
2021-04-28 20:16:59 +00:00
Hugo Sales
7f765c530e
[Embed][ENTITY] Fix embed route and use attachment_view rather than _show. Rename Entity::have to Entity::has, because grammar
2021-04-28 20:15:43 +00:00
Hugo Sales
e699824b1d
[Embed] Fix plugin. Only attempt to show an image, if we have one
2021-04-28 15:03:17 +00:00
Hugo Sales
6da8cf7f14
[ATTACHMENTS] Add event 'AttachmentFileInfo' to allow a plugin to override the file displayed
2021-04-28 15:01:40 +00:00
Hugo Sales
e08767cec0
[UTIL] Fix remove affix utilities, so they only try to remove an affix if the string starts/ends with it
2021-04-28 15:00:04 +00:00
Hugo Sales
83415b7aa6
[CONFIG] Add attachment related parameters to default config
2021-04-28 14:59:04 +00:00
Hugo Sales
495e66f4ae
[AUTOGENERATED] Update autogenerated code
2021-04-27 21:24:48 +00:00
Hugo Sales
17ea4ecce1
[DB] Fix error in config/services.yaml where the wrong namespace was used for the UpdateListener
2021-04-27 21:23:47 +00:00
Hugo Sales
1d7375b9cb
[TOOLS] Use \DateTimeInterface rather than DateTimeInterface
2021-04-27 21:23:00 +00:00
Hugo Sales
0a69f6de8c
[AUTOGENERATED] Run bin/generate_entity_fields for the Embed plugin
2021-04-27 21:18:44 +00:00
Hugo Sales
72cd2e7a30
[Embed] Review and port v2 code
2021-04-27 20:56:50 +00:00
Hugo Sales
c6389c63b8
[ENTITY] Add meta method 'have*' to Entity base class, which checks if a field 'isset'
2021-04-27 20:56:13 +00:00
Hugo Sales
f388554166
[ATTACHMENTS][EVENT] Add onHashFile event, which can be used to deduplicate files
...
Currently, we simply hash the contents of the file with sha256, but in the future we can use something smarter,
which could find visual feature similarity between images
2021-04-27 20:53:59 +00:00
Hugo Sales
b4ad396cd1
[FORMATTING] Add utilities to remove affixes from strings
2021-04-27 20:52:12 +00:00
Hugo Sales
c3473e45d2
[DEPENDENCIES] Add 'embed/embed', 'nyholm/psr7' and 'symfony/dom-crawler'
2021-04-27 20:50:43 +00:00
Hugo Sales
075b495f5a
[ENTITY] Add utils to Attachment and AttachmentThumbnail to get the corresponding URL and html representation parameters
2021-04-27 18:10:18 +00:00
Hugo Sales
9b3ccac246
[UTIL] Add TemporaryFile class, courtesy of Alexei Sorokin from v2, a class that ensures files stored in /tmp are removed, as it doesn't happen in some cases
2021-04-27 18:10:18 +00:00
Hugo Sales
82d9326343
[PLUGINS] Remove scripts. These will need to be implemented with Commands
2021-04-27 18:10:18 +00:00