]> git.mxchange.org Git - friendica.git/log
friendica.git
23 months agoFix calls for pictures without blurhash
Michael [Sun, 4 Dec 2022 15:14:43 +0000 (15:14 +0000)]
Fix calls for pictures without blurhash

23 months agoUse the blurhash when the remote picture doesn't load
Michael [Sun, 4 Dec 2022 14:58:53 +0000 (14:58 +0000)]
Use the blurhash when the remote picture doesn't load

23 months agoSupport Blurhash
Michael [Sun, 4 Dec 2022 13:29:21 +0000 (13:29 +0000)]
Support Blurhash

23 months agoMerge pull request #12322 from annando/api-rules
Hypolite Petovan [Sat, 3 Dec 2022 22:24:52 +0000 (17:24 -0500)]
Merge pull request #12322 from annando/api-rules

API: Central way to fetch the system rules

23 months agoMerge pull request #12321 from annando/getload
Hypolite Petovan [Sat, 3 Dec 2022 22:22:35 +0000 (17:22 -0500)]
Merge pull request #12321 from annando/getload

Only fetch the processes if needed

23 months agoRules added
Michael [Sat, 3 Dec 2022 21:15:08 +0000 (21:15 +0000)]
Rules added

23 months agoAPI: Central way to fetch the system rules
Michael [Sat, 3 Dec 2022 20:18:19 +0000 (20:18 +0000)]
API: Central way to fetch the system rules

23 months agoOnly fetch the processes if needed
Michael [Sat, 3 Dec 2022 19:44:50 +0000 (19:44 +0000)]
Only fetch the processes if needed

23 months agoMerge pull request #12320 from annando/issue-11553a
Hypolite Petovan [Sat, 3 Dec 2022 17:20:34 +0000 (12:20 -0500)]
Merge pull request #12320 from annando/issue-11553a

Issue 11553: Reliably return the user's contacts

23 months agoDebug code removed
Michael [Sat, 3 Dec 2022 15:37:40 +0000 (15:37 +0000)]
Debug code removed

23 months agoMerge pull request #12317 from MrPetovan/bug/notices
Michael Vogel [Sat, 3 Dec 2022 15:36:13 +0000 (16:36 +0100)]
Merge pull request #12317 from MrPetovan/bug/notices

Fix last reference of replaced variable $owner_nick in Protocol\Feed::atom()

23 months agoFix last reference of replaced variable $owner_nick in Protocol\Feed::atom()
Hypolite Petovan [Sat, 3 Dec 2022 12:27:30 +0000 (07:27 -0500)]
Fix last reference of replaced variable $owner_nick in Protocol\Feed::atom()

- Address https://github.com/friendica/friendica/issues/11994#issuecomment-1336146405

23 months agoIssue 11553: Reliably return the user's contacts
Michael [Sat, 3 Dec 2022 13:49:29 +0000 (13:49 +0000)]
Issue 11553: Reliably return the user's contacts

23 months agoMerge pull request #12316 from VVelox/load_fix
Hypolite Petovan [Sat, 3 Dec 2022 10:38:55 +0000 (05:38 -0500)]
Merge pull request #12316 from VVelox/load_fix

get the load average in a portable manner

23 months agonow with g
Zane C. Bowers-Hadley [Sat, 3 Dec 2022 10:34:17 +0000 (04:34 -0600)]
now with g

23 months agoderp, minor fix
Zane C. Bowers-Hadley [Sat, 3 Dec 2022 10:31:04 +0000 (04:31 -0600)]
derp, minor fix

23 months agoMerge pull request #12315 from MrPetovan/bug/12163-frio-group-display
Michael Vogel [Sat, 3 Dec 2022 10:28:54 +0000 (11:28 +0100)]
Merge pull request #12315 from MrPetovan/bug/12163-frio-group-display

Ward against empty template variable in frio:contact/entry.tpl

23 months agoMerge pull request #12310 from MrPetovan/bug/deprecated
Michael Vogel [Sat, 3 Dec 2022 10:26:10 +0000 (11:26 +0100)]
Merge pull request #12310 from MrPetovan/bug/deprecated

Address a couple PHP 8.1 deprecation notices

23 months agoget the load average in a portable manner
Zane C. Bowers-Hadley [Sat, 3 Dec 2022 10:24:49 +0000 (04:24 -0600)]
get the load average in a portable manner

23 months agoWard against preg_replace_callback null return value in Strings::performWithEscapedBlocks
Hypolite Petovan [Fri, 2 Dec 2022 13:10:16 +0000 (08:10 -0500)]
Ward against preg_replace_callback null return value in Strings::performWithEscapedBlocks

- Add logging to troubleshoot potential issue with regex
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1335124938

23 months agoEnsure null values aren't processed in Content\Text\Markdown::toBBCode
Hypolite Petovan [Fri, 2 Dec 2022 12:48:44 +0000 (07:48 -0500)]
Ensure null values aren't processed in Content\Text\Markdown::toBBCode

- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1335124938

23 months agoWard against empty template variable in frio:contact/entry.tpl
Hypolite Petovan [Sat, 3 Dec 2022 09:17:54 +0000 (04:17 -0500)]
Ward against empty template variable in frio:contact/entry.tpl

23 months agoMerge pull request #12314 from annando/issue-12302
Hypolite Petovan [Sat, 3 Dec 2022 07:55:34 +0000 (02:55 -0500)]
Merge pull request #12314 from annando/issue-12302

Issue 12302: Remote self is working again

23 months agoIssue 12302: Remote self is working again
Michael [Sat, 3 Dec 2022 07:15:29 +0000 (07:15 +0000)]
Issue 12302: Remote self is working again

23 months agoMerge pull request #12311 from matthiasmoritz/event-details-do-not-render-correctly...
Hypolite Petovan [Fri, 2 Dec 2022 20:43:19 +0000 (15:43 -0500)]
Merge pull request #12311 from matthiasmoritz/event-details-do-not-render-correctly-#12308

Event details do not render correctly

23 months agoMerge branch 'event-details-do-not-render-correctly-#12308' of https://github.com...
Matthias Moritz [Fri, 2 Dec 2022 20:01:20 +0000 (21:01 +0100)]
Merge branch 'event-details-do-not-render-correctly-#12308' of https://github.com/matthiasmoritz/friendica into event-details-do-not-render-correctly-#12308

23 months agoUpdate Event.php
Matthias Moritz [Fri, 2 Dec 2022 19:59:24 +0000 (20:59 +0100)]
Update Event.php

23 months agoMerge branch 'friendica:develop' into event-details-do-not-render-correctly-#12308
Matthias Moritz [Fri, 2 Dec 2022 19:42:58 +0000 (20:42 +0100)]
Merge branch 'friendica:develop' into event-details-do-not-render-correctly-#12308

23 months agoUpdate Event.php
Matthias Moritz [Fri, 2 Dec 2022 19:42:16 +0000 (20:42 +0100)]
Update Event.php

fixing double encoding issue in event view.

fixes #12308

23 months agoMerge pull request #12309 from MrPetovan/bug/warnings
Philipp [Fri, 2 Dec 2022 13:35:13 +0000 (14:35 +0100)]
Merge pull request #12309 from MrPetovan/bug/warnings

Ward against missing hidewall key in profile array in Model\Profile::getVCardHTML

23 months agoWard against missing hidewall key in profile array in Model\Profile::getVCardHTML
Hypolite Petovan [Fri, 2 Dec 2022 13:14:35 +0000 (08:14 -0500)]
Ward against missing hidewall key in profile array in Model\Profile::getVCardHTML

- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1335124938
- Add logging to troubleshoot unexpected case

23 months agoMerge pull request #12250 from MrPetovan/task/4090-move-mod-photos
Philipp [Thu, 1 Dec 2022 23:06:36 +0000 (00:06 +0100)]
Merge pull request #12250 from MrPetovan/task/4090-move-mod-photos

Move missing POST part of Profile\Photos\Index from mod/photos

23 months agoUpdated main translation file after moving strings
Hypolite Petovan [Wed, 23 Nov 2022 21:03:38 +0000 (16:03 -0500)]
Updated main translation file after moving strings

23 months agoMove missing POST part of Profile\Photos from mod/photos
Hypolite Petovan [Wed, 23 Nov 2022 19:08:58 +0000 (14:08 -0500)]
Move missing POST part of Profile\Photos from mod/photos

23 months agoMerge pull request #12227 from matthiasmoritz/public_calendar
Philipp [Thu, 1 Dec 2022 16:27:36 +0000 (17:27 +0100)]
Merge pull request #12227 from matthiasmoritz/public_calendar

Public calendar

23 months agoUpdate main translation file after changing strings
Hypolite Petovan [Wed, 30 Nov 2022 23:11:37 +0000 (18:11 -0500)]
Update main translation file after changing strings

23 months agoAdd new public_calendar additional feature
Hypolite Petovan [Wed, 30 Nov 2022 22:52:19 +0000 (17:52 -0500)]
Add new public_calendar additional feature

- This gives anonymous access to public events

23 months agoRemove unused first parameter from BaseProfile::getTabsHTML
Hypolite Petovan [Wed, 30 Nov 2022 19:38:23 +0000 (14:38 -0500)]
Remove unused first parameter from BaseProfile::getTabsHTML

- Add expected Profile::load call to Profile\Photos module

23 months agoTighten profile restriction feature
Hypolite Petovan [Wed, 30 Nov 2022 18:50:52 +0000 (13:50 -0500)]
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

23 months agoRemove unused theme info value "events_in_profile"
Hypolite Petovan [Wed, 30 Nov 2022 17:03:42 +0000 (12:03 -0500)]
Remove unused theme info value "events_in_profile"
All public events (event if they are ownded by other users) are visible

23 months agoMerge pull request #12298 from annando/api-suggestions
Hypolite Petovan [Thu, 1 Dec 2022 10:25:44 +0000 (05:25 -0500)]
Merge pull request #12298 from annando/api-suggestions

Contact suggestions are now cached

23 months agoMerge pull request #12306 from annando/api-doc
Hypolite Petovan [Thu, 1 Dec 2022 10:24:07 +0000 (05:24 -0500)]
Merge pull request #12306 from annando/api-doc

API: The "reports" endpoint is partially supported

23 months agoDon't fetch sugestions for the system user / catch error on contact timeline
Michael [Thu, 1 Dec 2022 07:07:59 +0000 (07:07 +0000)]
Don't fetch sugestions for the system user / catch error on contact timeline

23 months agoAvoid 'Undefined array key "last-activity"'
Michael [Thu, 1 Dec 2022 06:12:13 +0000 (06:12 +0000)]
Avoid 'Undefined array key "last-activity"'

23 months agoUpdate the last activity in OAuth
Michael [Thu, 1 Dec 2022 06:02:51 +0000 (06:02 +0000)]
Update the last activity in OAuth

23 months agoDeactivate setting last activity
Michael [Thu, 1 Dec 2022 05:57:29 +0000 (05:57 +0000)]
Deactivate setting last activity

23 months agoReenable last acttivity update
Michael [Thu, 1 Dec 2022 05:54:42 +0000 (05:54 +0000)]
Reenable last acttivity update

23 months agoReenable worker call
Michael [Thu, 1 Dec 2022 05:53:18 +0000 (05:53 +0000)]
Reenable worker call

23 months agoDebug the failing test
Michael [Thu, 1 Dec 2022 05:50:34 +0000 (05:50 +0000)]
Debug the failing test

23 months agoMerge pull request #12305 from MrPetovan/bug/notices
Michael Vogel [Thu, 1 Dec 2022 05:45:50 +0000 (06:45 +0100)]
Merge pull request #12305 from MrPetovan/bug/notices

Check post existence before accessing its properties in Model\Post\UserNotification

23 months agoAPI: The "reports" endpoint is partially supported
Michael [Thu, 1 Dec 2022 05:40:32 +0000 (05:40 +0000)]
API: The "reports" endpoint is partially supported

23 months agoCheck post existence before accessing its properties in Model\Post\UserNotification
Hypolite Petovan [Thu, 1 Dec 2022 00:30:36 +0000 (19:30 -0500)]
Check post existence before accessing its properties in Model\Post\UserNotification

23 months agoUse "utcNow"
Michael [Wed, 30 Nov 2022 22:36:58 +0000 (22:36 +0000)]
Use "utcNow"

23 months agoNew field to show the day of the last activity
Michael [Wed, 30 Nov 2022 22:34:50 +0000 (22:34 +0000)]
New field to show the day of the last activity

23 months agoMerge pull request #12304 from HankG/add-dismissed-field-to-mastodon-notifications
Hypolite Petovan [Wed, 30 Nov 2022 19:55:09 +0000 (14:55 -0500)]
Merge pull request #12304 from HankG/add-dismissed-field-to-mastodon-notifications

Add dismissed field to mastodon notifications

23 months agoUpdate src/Module/Api/Mastodon/Notifications.php
Hank G [Wed, 30 Nov 2022 19:39:00 +0000 (14:39 -0500)]
Update src/Module/Api/Mastodon/Notifications.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
23 months agoUpdate src/Factory/Api/Mastodon/Notification.php
Hank G [Wed, 30 Nov 2022 19:38:53 +0000 (14:38 -0500)]
Update src/Factory/Api/Mastodon/Notification.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
23 months agoMerge pull request #12303 from HankG/fix-mastodon-api-dismiss-endpoint
Hypolite Petovan [Wed, 30 Nov 2022 19:31:40 +0000 (14:31 -0500)]
Merge pull request #12303 from HankG/fix-mastodon-api-dismiss-endpoint

Fix broken dismiss endpoint on Mastodon notifications API

23 months agoAdd 'include_all' parameter on Mastodon API endpoint
Hank Grabowski [Wed, 30 Nov 2022 19:24:46 +0000 (14:24 -0500)]
Add 'include_all' parameter on Mastodon API endpoint
 Maintains old functionality of only returning non-dismissed notifications while adding ability to get list of dismissed and non-dismissed notifications

23 months agoAdd dismissed field to Mastodon API Notification types
Hank Grabowski [Wed, 30 Nov 2022 19:23:20 +0000 (14:23 -0500)]
Add dismissed field to Mastodon API Notification types

23 months agoFix broken dismiss endpoint on Mastodon notifications API
Hank Grabowski [Wed, 30 Nov 2022 19:11:39 +0000 (14:11 -0500)]
Fix broken dismiss endpoint on Mastodon notifications API

23 months agoMerge pull request #12267 from MarekBenjamin/show_image_upload_limit
Hypolite Petovan [Wed, 30 Nov 2022 17:24:51 +0000 (12:24 -0500)]
Merge pull request #12267 from MarekBenjamin/show_image_upload_limit

Show image size limit in Frio as "usagemessage" for photo_upload

23 months agoMerge branch 'friendica:develop' into show_image_upload_limit
MarekBenjamin [Wed, 30 Nov 2022 17:19:18 +0000 (18:19 +0100)]
Merge branch 'friendica:develop' into show_image_upload_limit

23 months agoUpdate src/Module/Media/Photo/Upload.php
MarekBenjamin [Wed, 30 Nov 2022 17:16:55 +0000 (18:16 +0100)]
Update src/Module/Media/Photo/Upload.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
23 months agoUpdate src/Module/Media/Photo/Upload.php
MarekBenjamin [Wed, 30 Nov 2022 17:16:42 +0000 (18:16 +0100)]
Update src/Module/Media/Photo/Upload.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
23 months agoChanges after code review
Michael [Wed, 30 Nov 2022 14:33:55 +0000 (14:33 +0000)]
Changes after code review

23 months agoIndention
Michael [Wed, 30 Nov 2022 13:35:57 +0000 (13:35 +0000)]
Indention

23 months agoMerge pull request #12299 from annando/auto-reshare-fix
Hypolite Petovan [Wed, 30 Nov 2022 13:34:10 +0000 (08:34 -0500)]
Merge pull request #12299 from annando/auto-reshare-fix

Check that an auto reshare is only done on the expected contact

23 months agoMerge pull request #12300 from matthiasmoritz/bug-noLocalPosts
Michael Vogel [Wed, 30 Nov 2022 12:37:40 +0000 (13:37 +0100)]
Merge pull request #12300 from matthiasmoritz/bug-noLocalPosts

Fix #12262 - shared friendica posts are filtered on status page

23 months agoMerge branch 'bug-noLocalPosts' of https://github.com/matthiasmoritz/friendica into...
Matthias Moritz [Wed, 30 Nov 2022 12:20:50 +0000 (13:20 +0100)]
Merge branch 'bug-noLocalPosts' of https://github.com/matthiasmoritz/friendica into bug-noLocalPosts

23 months agoUpdate Status.php
Matthias Moritz [Wed, 30 Nov 2022 12:19:31 +0000 (13:19 +0100)]
Update Status.php

Instead of removing AP, added Protocol::DFRN to the list of networks.

23 months agoMerge branch 'friendica:develop' into bug-noLocalPosts
Matthias Moritz [Wed, 30 Nov 2022 11:18:48 +0000 (12:18 +0100)]
Merge branch 'friendica:develop' into bug-noLocalPosts

23 months agoFix #12262 - shared friendica posts are filtered on status page
Matthias Moritz [Wed, 30 Nov 2022 11:15:58 +0000 (12:15 +0100)]
Fix #12262 - shared friendica posts are filtered on status page

Native shares from the same Instance (or maybe all Friendica instances) were filtered out from the users home. With this commit they now appear on the users Profile/Status

23 months agoCheck that an auto reshare is only done on the expected contact
Michael [Wed, 30 Nov 2022 09:28:27 +0000 (09:28 +0000)]
Check that an auto reshare is only done on the expected contact

23 months agoMerge pull request #12296 from MrPetovan/bug/deprecated
Michael Vogel [Wed, 30 Nov 2022 06:19:46 +0000 (07:19 +0100)]
Merge pull request #12296 from MrPetovan/bug/deprecated

Address some PHP 8.1 deprecation notices

23 months agoContact suggestions are now cached
Michael [Wed, 30 Nov 2022 05:59:27 +0000 (05:59 +0000)]
Contact suggestions are now cached

23 months agoRemoved redundant maximagesize = INF statements
Marek Bachmann [Wed, 30 Nov 2022 04:17:48 +0000 (05:17 +0100)]
Removed redundant maximagesize = INF statements

23 months agomessage.po
Marek Bachmann [Wed, 30 Nov 2022 03:39:00 +0000 (04:39 +0100)]
message.po

23 months agoCorrectly output binary prefix values since base 2 is used for conversion
Marek Bachmann [Wed, 30 Nov 2022 03:37:08 +0000 (04:37 +0100)]
Correctly output binary prefix values since base 2 is used for conversion

23 months agoCheck for inf values before try to converts bytes to binary prefix strings
Marek Bachmann [Wed, 30 Nov 2022 03:35:18 +0000 (04:35 +0100)]
Check for inf values before try to converts bytes to binary prefix strings

23 months agouse the existing function for format byte values to KiB, MiB, GiB
Marek Bachmann [Wed, 30 Nov 2022 03:34:40 +0000 (04:34 +0100)]
use the existing function for format byte values to KiB, MiB, GiB

23 months agoAdded getBytesFromShorthand at the remaining places.
Marek Bachmann [Wed, 30 Nov 2022 03:13:10 +0000 (04:13 +0100)]
Added getBytesFromShorthand at the remaining places.

23 months agoAddress some PHP 8.1 deprecation notices
Hypolite Petovan [Wed, 30 Nov 2022 00:31:16 +0000 (19:31 -0500)]
Address some PHP 8.1 deprecation notices

- Replace a strstr call by strpos in Model\APContact
- Simplify conditions in Protocol\DFRN
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1331012289

23 months agoAdded handling as infinity if maxfilesize is set to 0
Marek Bachmann [Wed, 30 Nov 2022 01:44:48 +0000 (02:44 +0100)]
Added handling as infinity if maxfilesize is set to 0

23 months agoMerge branch 'develop' into show_image_upload_limit
Marek Bachmann [Wed, 30 Nov 2022 01:28:15 +0000 (02:28 +0100)]
Merge branch 'develop' into show_image_upload_limit

23 months agoWrapped all occurrences of DI::config()->get('system', 'maximagesize') with Strings...
Marek Bachmann [Wed, 30 Nov 2022 01:26:56 +0000 (02:26 +0100)]
Wrapped all occurrences of DI::config()->get('system', 'maximagesize') with Strings::getBytesFromShorthand()

23 months agoAdded info that shorthands can be used for maxfilesize Admin Site
Marek Bachmann [Wed, 30 Nov 2022 01:16:48 +0000 (02:16 +0100)]
Added info that shorthands can be used for maxfilesize Admin Site

23 months agoFixed meaning of "maximagesize" = 0 --> infinity
Marek Bachmann [Wed, 30 Nov 2022 01:16:04 +0000 (02:16 +0100)]
Fixed meaning of "maximagesize" = 0 --> infinity

23 months agoMerge remote-tracking branch 'origin/show_image_upload_limit' into show_image_upload_...
Marek Bachmann [Wed, 30 Nov 2022 00:58:32 +0000 (01:58 +0100)]
Merge remote-tracking branch 'origin/show_image_upload_limit' into show_image_upload_limit

23 months agoUse previously already available field.5 for short hand pattern ad admin page for...
Marek Bachmann [Wed, 30 Nov 2022 00:58:22 +0000 (01:58 +0100)]
Use previously already available field.5 for short hand pattern ad admin page for maximagesize

23 months agoUpdate src/Module/Admin/Site.php
MarekBenjamin [Wed, 30 Nov 2022 00:49:53 +0000 (01:49 +0100)]
Update src/Module/Admin/Site.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
23 months agoRemoved Trends.php which for what ever reason found its way in my branch under src...
Marek Bachmann [Wed, 30 Nov 2022 00:40:21 +0000 (01:40 +0100)]
Removed Trends.php which for what ever reason found its way in my branch under src/Module/Api/Mastodon but is not present in friendica:develop

23 months agoMerge pull request #12294 from annando/tag-warnings
Hypolite Petovan [Wed, 30 Nov 2022 00:36:51 +0000 (19:36 -0500)]
Merge pull request #12294 from annando/tag-warnings

Fix warning 'Undefined array key "name"'

23 months agoMerge remote-tracking branch 'origin/show_image_upload_limit' into show_image_upload_...
Marek Bachmann [Wed, 30 Nov 2022 00:26:37 +0000 (01:26 +0100)]
Merge remote-tracking branch 'origin/show_image_upload_limit' into show_image_upload_limit

23 months agoAdded Strings::getBytesFromShorthand() for file size check at upload and new message.po
Marek Bachmann [Wed, 30 Nov 2022 00:22:38 +0000 (01:22 +0100)]
Added Strings::getBytesFromShorthand() for file size check at upload and new message.po

23 months agowanted to use a constant for the shorthand regex to be used in the form input templat...
Marek Bachmann [Wed, 30 Nov 2022 00:15:42 +0000 (01:15 +0100)]
wanted to use a constant for the shorthand regex to be used in the form input templates and to check maximagesize post value. But Input field seems to require the regex without enclosing "/.../", so remove const for now

23 months agosplit-off! Trends.php allow shorthands in the system.maximagesize
Marek Bachmann [Wed, 30 Nov 2022 00:05:32 +0000 (01:05 +0100)]
split-off! Trends.php allow shorthands in the system.maximagesize

23 months agoallow shorthands in the system.maximagesize
Marek Bachmann [Wed, 30 Nov 2022 00:05:32 +0000 (01:05 +0100)]
allow shorthands in the system.maximagesize

23 months agoAdded Strings::getBytesFromShorthand() for file size check at upload and new message.po
Marek Bachmann [Wed, 30 Nov 2022 00:22:38 +0000 (01:22 +0100)]
Added Strings::getBytesFromShorthand() for file size check at upload and new message.po

23 months agowanted to use a constant for the shorthand regex to be used in the form input templat...
Marek Bachmann [Wed, 30 Nov 2022 00:15:42 +0000 (01:15 +0100)]
wanted to use a constant for the shorthand regex to be used in the form input templates and to check maximagesize post value. But Input field seems to require the regex without enclosing "/.../", so remove const for now