Commit Graph

621 Commits (54852ecb566a4e6e48e70022d5ba760170053ed7)

Author SHA1 Message Date
Hypolite Petovan 8c4b2107b5 Include author-alias to the field list in mod/photos
- It's used to generate magic links of authors of comments on photos
- Address https://github.com/friendica/friendica/issues/13761#issuecomment-1980738080
2024-03-06 12:07:43 -05:00
Michael Vogel 14e5b06029
Image handling reworked, new image formats added (#13900)
* Image handling reworked, new image formats added

* Updated messages.po

* The dot is now part of the file extension

* Added WebP in install documentation

* Handle unhandled mime types

* Fixed animated picture detected
2024-02-17 07:45:41 +01:00
Michael f83f61f7ac "ANY_VALUE" is removed 2024-01-15 16:45:24 +00:00
Michael 89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Hypolite Petovan 938b2bae23 Align proxy sizes to photo preview sizes
- PIXEL_SMALL goes from 300 to 320
- PIXEL_MEDIUM goes from 600 to 640
- Use Proxy pixel constants where we used hard-coded pixel values
2023-10-14 16:05:01 -04:00
Michael 4c3f2441f7 Display the contact alias if the URL is no HTTP link 2023-06-18 16:49:38 +00:00
Hypolite Petovan 4f7740264e Replace "group" with "circle" in the rest of the code
- Remaining mentions already mean "forum"
2023-05-27 22:01:45 -04:00
Michael c5ca5bfdf8 Function renamed 2023-05-10 07:54:15 +00:00
Michael 7d91cc73de Unifiy the creation of photo links 2023-05-09 20:44:58 +00:00
Josh Soref c6d1c01426 spelling: dynamically
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:03:23 -04:00
Jakobus Schürz c01f7f98ae reinsert Friendica\DI (accidentially removed before) 2023-03-19 18:52:46 +01:00
Jakobus Schürz 920dcca263 render max_imagesize in header.tpl
so it is reachable general from the whole website, and the dropzone-factory can use
it also to create dropzones from modal.js
2023-03-19 18:52:46 +01:00
Jakobus Schürz 0cc2e1c22a apply changes from review 2023-03-19 18:52:45 +01:00
Jakobus Schürz 512e5900e6 use round instead of floor to make imagesize <1M possible 2023-03-19 18:52:45 +01:00
Jakobus Schürz ada11a2c67 create factory for dropzones 2023-03-19 18:52:45 +01:00
Jakobus Schürz 39f7660a1d fix getting bytes from shorthand in php 2023-03-19 18:52:45 +01:00
Jakobus Schürz 3688196859 create workaround for not working php
Strings:getBytesFromShorthand

i created a js-function which converts integer, k, m and g to MB
Just remove this code, when we found out, why Strings is in some files
not working.
2023-03-19 18:52:45 +01:00
Jakob Schürz 177bf9b67b fix missing DI 2023-03-19 18:52:45 +01:00
Jakobus Schürz be2afac60d take maxFilesize from systemsettings
* does not work everywhere...
2023-03-19 18:52:45 +01:00
Hypolite Petovan 120b78e30a Enable profile user theme on single photo display 2023-01-10 20:40:35 -05:00
Hannes Heute 24b5710e17 remove parentheses 2023-01-04 16:58:45 +01:00
Hannes Heute 46461be818 improve previous / next function in photo gallery 2023-01-04 14:25:33 +01:00
Philipp f8f3689a0d
Fix https://github.com/friendica/friendica/issues/12486#issuecomment-1368540088 2023-01-01 22:34:01 +01:00
Hypolite Petovan 1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Hypolite Petovan 34f21b40f4 Move missing POST part of Profile\Photos from mod/photos 2022-12-01 17:57:29 -05:00
Hypolite Petovan ae76fa1174 Remove unused first parameter from BaseProfile::getTabsHTML
- Add expected Profile::load call to Profile\Photos module
2022-12-01 08:03:35 -05:00
Hypolite Petovan b83526ad0b Tighten profile restriction feature
- Prevent feed access to restricted profiles
- Rework display of restricted profiles with a redirect to the profile/restricted route
- Normalize permission checking with IHandleUserSession->isAuthenticated
- Remove unusable "nocache" parameter in feed module because session isn't initialized
- Reword setting name and description
2022-12-01 08:03:35 -05:00
Marek Bachmann 79235b6db1 Removed redundant maximagesize = INF statements 2022-11-30 05:17:48 +01:00
Marek Bachmann 037e181f82 use the existing function for format byte values to KiB, MiB, GiB 2022-11-30 04:34:40 +01:00
Marek Bachmann 97a3587e58 Added handling as infinity if maxfilesize is set to 0 2022-11-30 02:44:48 +01:00
Marek Bachmann 2794100cbc Fixed meaning of "maximagesize" = 0 --> infinity 2022-11-30 02:16:04 +01:00
Marek Bachmann 978fe26f4c Added Strings::getBytesFromShorthand() for file size check at upload and new message.po 2022-11-30 01:26:08 +01:00
Marek Bachmann 9c383e2004 allow shorthands in the system.maximagesize 2022-11-30 01:26:08 +01:00
Marek Bachmann f45b358393 using constant value for calculation of MiB output, really no need to calculate 2**20 for just dividing the bytes by one constant divisor. 2022-11-26 23:44:23 +01:00
Marek Bachmann 597f1ba9e3 using constant value for calculation of MiB output, really no need to cluclate 2**20 for just deviding the bytes by one constant divisor. 2022-11-26 23:33:51 +01:00
Marek Bachmann 54289b2d08 Integrated isnumeric check to limit comparison condition 2022-11-26 23:25:11 +01:00
Marek Bachmann 6c73077bbc whitespaces 2022-11-26 21:53:12 +01:00
Marek Bachmann f88722bf7f Better formatting 2022-11-26 21:47:55 +01:00
Marek Bachmann f4d49e561c fixed a forgotten debug output 2022-11-26 21:44:41 +01:00
Marek Bachmann 907deed523 introduced getBytesFromShorthand function to covert from shorthand notation to int 2022-11-26 21:43:31 +01:00
Marek Bachmann c4c1bd2908 changed var name 2022-11-25 23:36:28 +01:00
Marek Bachmann bb67f6e219 Added check if upload_max_filesize (php.ini) or friendica option 'maxfilesize' is dominant for the actual image upload limit and print out the lower (relevant) one. 2022-11-25 22:57:06 +01:00
MarekBenjamin 9dd1cf8316
Update mod/photos.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-11-25 21:53:32 +01:00
Marek Bachmann d402fe364e Show image size limit in Frio as "usagemessage" for photo_upload 2022-11-25 19:44:09 +01:00
Hypolite Petovan 77e87da441 Create /profile/{nickname}/photos route
- Create new Profile\Photos\Index module class
- Update most references of the legacy /photos/{nickname} route
2022-11-20 17:15:07 -05:00
Hypolite Petovan 952e6c688c Suppress warning when /phots route is used without a nickname
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1314964388
2022-11-15 09:04:12 -05:00
Hypolite Petovan 4a626ef101 Create new Contact\Redir module class
- Move /redir route to /contact/redir
2022-11-08 20:12:23 -05:00
Hypolite Petovan e0dc7a471e Create Post/Tag/Remove module class and route
- Fix tag name parameter in single tag removal link in mod/photos
- Remove "/post" from backend routes as it was preventing sessions from working in this module. No existing module had a route starting with "/post".
2022-11-03 00:27:08 -04:00
Philipp 8dda6144a9
Remove unnecessary "use" 2022-10-20 21:06:06 +02:00
Philipp bfe68702db
UserSession class [2] - Refactor mod/ files 2022-10-20 21:02:49 +02:00