512e5900e6
use round instead of floor to make imagesize <1M possible
2023-03-19 18:52:45 +01:00
ada11a2c67
create factory for dropzones
2023-03-19 18:52:45 +01:00
39f7660a1d
fix getting bytes from shorthand in php
2023-03-19 18:52:45 +01:00
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
be2afac60d
take maxFilesize from systemsettings
...
* does not work everywhere...
2023-03-19 18:52:45 +01:00
Michael
5f6503a73f
Editing/removing of attached pictures is now possible via web
2023-02-27 07:47:31 +00:00
Philipp
544168244c
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-02-19 11:12:48 +01:00
Philipp
f0c29edcde
Adapt BaseURL calls to new UriInterface
2023-02-18 21:12:21 +01:00
Michael
f542211189
Mode depending control for the behaviour with blocked contacts
2023-01-12 06:25:55 +00:00
Hypolite Petovan
120b78e30a
Enable profile user theme on single photo display
2023-01-10 20:40:35 -05:00
Michael
20a2cec0b0
Moved permission assigning / simplified block check
2023-01-10 05:59:25 +00:00
Michael
840f25cc5c
Improve ignoring of messages
2023-01-09 16:23:39 +00:00
Michael Vogel
d5bc6d0006
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-07 19:54:13 +01:00
Michael
900e0d46d3
Changes after review
2023-01-07 18:46:10 +00:00
Michael
6a0a13855f
More simplifications
2023-01-07 18:19:04 +00:00
Michael
8654b39e98
Simplified code
2023-01-07 18:07:54 +00:00
Michael
4e4eab7548
Merge remote-tracking branch 'upstream/develop' into mod-item
2023-01-07 17:14:40 +00:00
Hypolite Petovan
3b9bf4d70d
Remove system.no_auto_update personal config key and assume default value of true
...
- By popular request, the behavior with false was too perturbating
2023-01-05 10:27:03 -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
Michael
09f46b20f1
Functionality is split
2023-01-04 10:59:28 +00:00
Michael
d1a951f0ac
Post processing centralized
2023-01-04 06:52:40 +00:00
Michael
0d56f156f7
Code cleanup for mod/item.php
2023-01-04 05:44:52 +00:00
Hypolite Petovan
9c256ad76f
Remove obsolete OExchange module and reference
...
- Protocol looks unsupported for a decade now
2023-01-01 19:20:42 -05:00
Hypolite Petovan
8bbf9e93c6
Remove dependency to the second parameter of XML::fromArray
2023-01-01 19:20:42 -05: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
a01872a117
Merge branch 'develop' into show_image_upload_limit
...
# Conflicts:
# src/Util/Strings.php
# view/lang/C/messages.po
2022-11-27 23:52:58 +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
Philipp
d8ad95ac39
Remove mod/fbrowser
2022-11-26 22:37:03 +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