minimedit.git
2 years agologin/pass: error messages below page title master
Mischa POSLAWSKY [Mon, 27 Dec 2021 18:21:48 +0000 (19:21 +0100)]
login/pass: error messages below page title

Headers prepended probably since commit v4.5-6-g50f9b29cc2 (2020-12-19)
[page: ignore output buffer in article render].

2 years agoissue: reply edit of page and announce columns v5.4
Mischa POSLAWSKY [Thu, 25 Nov 2021 23:58:28 +0000 (00:58 +0100)]
issue: reply edit of page and announce columns

2 years agoissue: keep image formatting after edit
Mischa POSLAWSKY [Thu, 25 Nov 2021 23:51:53 +0000 (00:51 +0100)]
issue: keep image formatting after edit

2 years agoissue: formatted main message, edit links in admin dates
Mischa POSLAWSKY [Thu, 25 Nov 2021 23:41:25 +0000 (00:41 +0100)]
issue: formatted main message, edit links in admin dates

Allow first comment to be edited.

2 years agoissue: reply posts in article elements
Mischa POSLAWSKY [Thu, 25 Nov 2021 23:14:31 +0000 (00:14 +0100)]
issue: reply posts in article elements

More appropriate than list items.  Requires stylesheet changes.

2 years agoissue: restore reply form divider
Mischa POSLAWSKY [Wed, 17 Nov 2021 01:57:17 +0000 (02:57 +0100)]
issue: restore reply form divider

Distinguish site explanation from user messages.

2 years agoissue: link open count to filtered page
Mischa POSLAWSKY [Wed, 17 Nov 2021 01:21:00 +0000 (02:21 +0100)]
issue: link open count to filtered page

2 years agoissue: hide unannounced messages from public activity
Mischa POSLAWSKY [Thu, 11 Nov 2021 19:46:59 +0000 (20:46 +0100)]
issue: hide unannounced messages from public activity

2 years agoissue: edit links for beheer admins
Mischa POSLAWSKY [Fri, 5 Nov 2021 18:19:53 +0000 (19:19 +0100)]
issue: edit links for beheer admins

2 years agoissue: indicate reply updates to admins
Mischa POSLAWSKY [Fri, 5 Nov 2021 16:47:12 +0000 (17:47 +0100)]
issue: indicate reply updates to admins

2 years agoissue: require message contents
Mischa POSLAWSKY [Fri, 5 Nov 2021 16:34:43 +0000 (17:34 +0100)]
issue: require message contents

2 years agoissue: message editing feature
Mischa POSLAWSKY [Fri, 1 Oct 2021 01:16:03 +0000 (03:16 +0200)]
issue: message editing feature

2 years agoissue: header counting open and closed rows
Mischa POSLAWSKY [Tue, 5 Oct 2021 22:41:23 +0000 (00:41 +0200)]
issue: header counting open and closed rows

2 years agomail: decode multipart attachments (text, html, images)
Mischa POSLAWSKY [Fri, 9 Jul 2021 00:49:21 +0000 (02:49 +0200)]
mail: decode multipart attachments (text, html, images)

2 years agoissue: admin option to edit subjects
Mischa POSLAWSKY [Thu, 30 Sep 2021 23:32:02 +0000 (01:32 +0200)]
issue: admin option to edit subjects

2 years agologin: metadata preview of linked subdirectory pages
Mischa POSLAWSKY [Wed, 29 Sep 2021 20:51:43 +0000 (22:51 +0200)]
login: metadata preview of linked subdirectory pages

Fix for directories without index page broken in commit v5.3-8-g5940cdf5f5
(2021-09-22) [preview target metadata of linked index pages].

2 years agoissue: ordered overview including closed tickets
Mischa POSLAWSKY [Fri, 16 Apr 2021 14:20:46 +0000 (16:20 +0200)]
issue: ordered overview including closed tickets

Especially broken timeline with many open tickets.

2 years agoissue: reply option to mark announced publication
Mischa POSLAWSKY [Tue, 28 Sep 2021 15:50:31 +0000 (17:50 +0200)]
issue: reply option to mark announced publication

Can be unchecked to decrease message visibility.

2 years agoissue: reuse function to create messages from reply widget
Mischa POSLAWSKY [Tue, 28 Sep 2021 15:05:22 +0000 (17:05 +0200)]
issue: reuse function to create messages from reply widget

Move code to common upload include for shared validation and features.

2 years agoissue: store main description as comment row
Mischa POSLAWSKY [Tue, 21 Sep 2021 17:13:07 +0000 (19:13 +0200)]
issue: store main description as comment row

Convert issue body to mandatory reply (recognised by oldest date):

INSERT INTO comments
SELECT concat(page, '/', id), body, created, author FROM issues;
CREATE OR REPLACE VIEW messages ...;

2 years agodoclist: link directory index pages
Mischa POSLAWSKY [Wed, 22 Sep 2021 12:21:54 +0000 (14:21 +0200)]
doclist: link directory index pages

2 years agologin: preview target metadata of linked index pages
Mischa POSLAWSKY [Wed, 22 Sep 2021 14:40:17 +0000 (16:40 +0200)]
login: preview target metadata of linked index pages

2 years agopage: apply admin restrictions from .private contents
Mischa POSLAWSKY [Wed, 22 Sep 2021 12:59:30 +0000 (14:59 +0200)]
page: apply admin restrictions from .private contents

2 years agologin: return success status to whatsapp crawler
Mischa POSLAWSKY [Thu, 16 Sep 2021 07:48:10 +0000 (09:48 +0200)]
login: return success status to whatsapp crawler

An 403 forbidden error will prevent metadata parsing and consecutive link
preview.

2 years agoissue: include reply image in api metadata
Mischa POSLAWSKY [Thu, 16 Sep 2021 07:15:34 +0000 (09:15 +0200)]
issue: include reply image in api metadata

2 years agoissue/activity: ignore messages moved to spam page
Mischa POSLAWSKY [Sun, 23 May 2021 12:50:29 +0000 (14:50 +0200)]
issue/activity: ignore messages moved to spam page

2 years agohead: self link as canonical url instead of og:url
Mischa POSLAWSKY [Tue, 26 Jan 2021 21:27:54 +0000 (22:27 +0100)]
head: self link as canonical url instead of og:url

Reflect actual intent, probably with identical results.
Pages should (only?) specify an original og:url in case of later renames.

2 years agohead: reorder description metadata attributes
Mischa POSLAWSKY [Thu, 19 Aug 2021 15:14:45 +0000 (17:14 +0200)]
head: reorder description metadata attributes

At least Twitter <https://cards-dev.twitter.com/validator> requires og property to be first.

2 years agoedit/page: keep metadata headers unwrapped
Mischa POSLAWSKY [Thu, 25 Mar 2021 02:29:13 +0000 (03:29 +0100)]
edit/page: keep metadata headers unwrapped

Prefer all meta tags on the first line.

2 years agoissue/activity: contents after paragraph cut v5.3
Mischa POSLAWSKY [Thu, 20 May 2021 23:04:05 +0000 (01:04 +0200)]
issue/activity: contents after paragraph cut

Trailing newline added by recent formatting.
Also validate html by keeping element close.

2 years agowidget/reply: ignore missing user object
Mischa POSLAWSKY [Sat, 15 May 2021 21:53:15 +0000 (23:53 +0200)]
widget/reply: ignore missing user object

Fix include without site setup for testing.

2 years agowidget/reply: formatting syntax for unordered lists
Mischa POSLAWSKY [Sat, 15 May 2021 21:51:24 +0000 (23:51 +0200)]
widget/reply: formatting syntax for unordered lists

More complicated block formatting replacing paragraphs by list items.
Keep to consecutive regular expressions and html herding while possible
instead of complicated code nesting or parsers.

2 years agowidget/reply: formatting syntax for ~strike~ and `code`
Mischa POSLAWSKY [Sat, 15 May 2021 21:51:02 +0000 (23:51 +0200)]
widget/reply: formatting syntax for ~strike~ and `code`

Remaining inline options in common chat systems.

2 years agowidget/reply: emphasis formatting over sentences
Mischa POSLAWSKY [Sat, 15 May 2021 20:18:54 +0000 (22:18 +0200)]
widget/reply: emphasis formatting over sentences

Fix boundaries and contents besides simple words.

2 years agowidget/reply: formatting syntax for <links>
Mischa POSLAWSKY [Fri, 14 May 2021 15:26:40 +0000 (17:26 +0200)]
widget/reply: formatting syntax for <links>

Recognise common <url> notation (as in Markdown), extended for optional link
names after pipe (as in Slack) or whitespace (assuming escaped in urls).

2 years agowidget/reply: formatting syntax for *bold*
Mischa POSLAWSKY [Fri, 14 May 2021 15:20:38 +0000 (17:20 +0200)]
widget/reply: formatting syntax for *bold*

Common chat format but unlike more complicated Markdown **doubling**.

2 years agowidget/reply: formatting syntax for _italics_
Mischa POSLAWSKY [Fri, 14 May 2021 14:59:48 +0000 (16:59 +0200)]
widget/reply: formatting syntax for _italics_

Single underscores for emphasis, as in mail, chat, and Markdown.
Do not cater to advanced usage like partial highlights inside words and
escapes (neither do whatsapp and slack for example); admins can use html
if really needed.

2 years agowidget/reply: paragraph breaks on input lines unless trailing spaces
Mischa POSLAWSKY [Fri, 14 May 2021 14:18:09 +0000 (16:18 +0200)]
widget/reply: paragraph breaks on input lines unless trailing spaces

Expect stories not poems, so hard line breaks should rarely be intended.
Exceptions are possible using Markdown syntax of trailing whitespace.

2 years agowidget/reply: save raw message input before formatting
Mischa POSLAWSKY [Mon, 26 Apr 2021 16:19:33 +0000 (18:19 +0200)]
widget/reply: save raw message input before formatting

Prepare for upcoming conversion (errors) and possible debugging.

Restructure earlier posts:

ALTER TABLE comments ADD raw text;
UPDATE comments SET raw = regexp_replace(regexp_replace(raw,
'<br />|<\/?p>', '', 'g'),
E'\n?<img src="/thumb/640x(/.*)" />', E'\n\\1', 'g');

2 years agowidget/reply: lazy image loading in html5
Mischa POSLAWSKY [Fri, 9 Apr 2021 04:29:03 +0000 (06:29 +0200)]
widget/reply: lazy image loading in html5

Indicate BTF images are optional (assume the first two are visible),
to reduce bandwidth for quick peeks.

Supported in FF 75+ and Chrome 77+ (no Safari yet) but not important enough
to bother with javascript complexity.

2 years agopage: indicate repost status in http redirects
Mischa POSLAWSKY [Mon, 22 Feb 2021 00:37:15 +0000 (01:37 +0100)]
page: indicate repost status in http redirects

Replace generic status 302 by specific HTTP2 options.
In particular prevent unrelated posts after login.

2 years agopage: referrer policy to include details cross-origin
Mischa POSLAWSKY [Thu, 4 Feb 2021 01:31:48 +0000 (02:31 +0100)]
page: referrer policy to include details cross-origin

Default recently changed to strict-origin-when-cross-origin which hides path
details in Referer.  Disagree about this "security" and rather keep the page
information for external sites.

2 years agoissue/activity: prevent abbreviation of subsequent images
Mischa POSLAWSKY [Thu, 6 May 2021 17:19:22 +0000 (19:19 +0200)]
issue/activity: prevent abbreviation of subsequent images

Fix cropped image after multiple paragraphs.

2 years agofoto: api directory modification headers
Mischa POSLAWSKY [Tue, 4 May 2021 17:01:33 +0000 (19:01 +0200)]
foto: api directory modification headers

Report presence and date to reduce dashboard bandwidth,
with minimal cache-control to avoid dynamic caching.

2 years agoissue/activity: append related image to subsequent message
Mischa POSLAWSKY [Sun, 2 May 2021 18:21:29 +0000 (20:21 +0200)]
issue/activity: append related image to subsequent message

Prefer attribution of significant message instead of preceding images.

2 years agoissue/activity: only concatenate messages after images
Mischa POSLAWSKY [Tue, 27 Apr 2021 19:51:34 +0000 (21:51 +0200)]
issue/activity: only concatenate messages after images

Fix cascading floats in mixed threads.

2 years agoissue/activity: concatenate similar replies
Mischa POSLAWSKY [Tue, 27 Apr 2021 18:43:52 +0000 (20:43 +0200)]
issue/activity: concatenate similar replies

Omit title for unchanged ticket and author,
causing stacked images from different messages.
Don't bother with closing <dd> for simplicity.

2 years agoissue/activity: format replies for dashboard
Mischa POSLAWSKY [Tue, 27 Apr 2021 18:37:24 +0000 (20:37 +0200)]
issue/activity: format replies for dashboard

Cut consecutive paragraphs (similar to news feed)
and move images right to take less space.

2 years agofoto: translate tag album requests to .tag
Mischa POSLAWSKY [Tue, 27 Apr 2021 15:03:15 +0000 (17:03 +0200)]
foto: translate tag album requests to .tag

Hidden from overviews but accessible without dot.

2 years agofoto: json client requests serve directory api
Mischa POSLAWSKY [Thu, 31 Dec 2020 13:35:32 +0000 (14:35 +0100)]
foto: json client requests serve directory api

Requested album links as js array (in subarrays to allow future metadata
addition) for use by dashboard page.

2 years agonieuws: indicate abbreviated teaser contents
Mischa POSLAWSKY [Tue, 27 Apr 2021 14:41:44 +0000 (16:41 +0200)]
nieuws: indicate abbreviated teaser contents

In story text is not identical, advertise where to find more details.
Assumes an external non-interactive display for now.

2 years agonieuws: widget option for teaser preference
Mischa POSLAWSKY [Tue, 27 Apr 2021 14:34:54 +0000 (16:34 +0200)]
nieuws: widget option for teaser preference

Replace RSS feed requirement on dashboard to get short paragraphs.

2 years agopage: omit editing <div> container for xml response
Mischa POSLAWSKY [Tue, 27 Apr 2021 01:03:11 +0000 (03:03 +0200)]
page: omit editing <div> container for xml response

2 years agoissue/activity: ungrouped select, persistent titles
Mischa POSLAWSKY [Tue, 20 Apr 2021 15:49:59 +0000 (17:49 +0200)]
issue/activity: ungrouped select, persistent titles

Revert to author headers and simple chronological display.

2 years agoissue/activity: author footer below messages
Mischa POSLAWSKY [Sat, 16 Jan 2021 14:23:04 +0000 (15:23 +0100)]
issue/activity: author footer below messages

Dashboard styling for small citations.

2 years agoissue/activity: ignore missing author
Mischa POSLAWSKY [Tue, 12 Jan 2021 04:46:17 +0000 (05:46 +0100)]
issue/activity: ignore missing author

Silence PHP warnings for system (eg p2000) notifications.

2 years agologin/commits: syntax highlighting of diff lines
Mischa POSLAWSKY [Fri, 15 Jan 2021 17:41:47 +0000 (18:41 +0100)]
login/commits: syntax highlighting of diff lines

Parse chunks returned by git's porcelain word diffing interface,
formatting old/new columns similar to split github commit output.
Ignore strict line numbers in favour of minimal text comparison.

2 years agologin/commits: git show of hash parameter
Mischa POSLAWSKY [Fri, 15 Jan 2021 09:24:40 +0000 (10:24 +0100)]
login/commits: git show of hash parameter

Link overview to further details, currently unformatted.

2 years agologin/list: ignore symlinks in profile directory
Mischa POSLAWSKY [Fri, 15 Jan 2021 11:26:38 +0000 (12:26 +0100)]
login/list: ignore symlinks in profile directory

Assume links to directories are aliases to be hidden.

2 years agoupload: disallow overwrites of existing file names
Mischa POSLAWSKY [Wed, 7 Apr 2021 15:37:36 +0000 (17:37 +0200)]
upload: disallow overwrites of existing file names

Not a solution for reusing the same name, but prevents silent replacement
allowing the user to retry.

Reported-by: Fulco Jongsma
2 years agopage: ignore missing accept header in api detection
Mischa POSLAWSKY [Mon, 29 Mar 2021 23:21:37 +0000 (01:21 +0200)]
page: ignore missing accept header in api detection

Silence PHP warnings for some [robot] requests.

3 years agoissue: secure against external form submissions v5.2
Mischa POSLAWSKY [Mon, 22 Feb 2021 00:46:44 +0000 (01:46 +0100)]
issue: secure against external form submissions

Ignore api requests (preview from (failed) login),
and require subject field to be sure.

Fixes empty issues after failed logins.

3 years agologin/mailpass: case-insensitive match of requested address
Mischa POSLAWSKY [Mon, 8 Mar 2021 18:10:26 +0000 (19:10 +0100)]
login/mailpass: case-insensitive match of requested address

3 years agowidget/reply: identify subject changes
Mischa POSLAWSKY [Wed, 24 Feb 2021 09:47:18 +0000 (10:47 +0100)]
widget/reply: identify subject changes

3 years agowidget/reply: link non-image uploads instead
Mischa POSLAWSKY [Thu, 25 Feb 2021 13:08:27 +0000 (14:08 +0100)]
widget/reply: link non-image uploads instead

3 years agositemap.xml: fix access to searched page objects
Mischa POSLAWSKY [Sat, 6 Feb 2021 23:28:58 +0000 (00:28 +0100)]
sitemap.xml: fix access to searched page objects

Broken since commit v4.5-30-gee9702f9ff (2020-12-21)
[page: search results as article objects].

3 years agocontact: save email contents to log file
Mischa POSLAWSKY [Tue, 8 Jan 2019 23:32:17 +0000 (00:32 +0100)]
contact: save email contents to log file

Backup in case of undelivered or otherwise lost messages.

3 years agowidget/contact: client ip address in received mail header
Mischa POSLAWSKY [Mon, 25 Jan 2021 23:35:41 +0000 (00:35 +0100)]
widget/contact: client ip address in received mail header

Do not record technical identification in message body, instead emulate as
mail sender hidden for common consumption.

3 years agowidget/contact: reduce code indentation of post check
Mischa POSLAWSKY [Mon, 25 Jan 2021 23:13:59 +0000 (00:13 +0100)]
widget/contact: reduce code indentation of post check

Minor code cleanup.

3 years agopage: url encode widget attributes
Mischa POSLAWSKY [Mon, 25 Jan 2021 23:43:03 +0000 (00:43 +0100)]
page: url encode widget attributes

Support spaces and delimiters in values, such as spaces in contact addresses.

3 years agowidget/contact: subject and recipient address from call options
Mischa POSLAWSKY [Mon, 25 Jan 2021 22:55:24 +0000 (23:55 +0100)]
widget/contact: subject and recipient address from call options

Custom variables instead of hardcoding each case.

3 years agowidget/contact: send from given name
Mischa POSLAWSKY [Mon, 25 Jan 2021 23:05:30 +0000 (00:05 +0100)]
widget/contact: send from given name

Apply naam input to sender email address.

3 years agologin/edit: share user override with widget
Mischa POSLAWSKY [Sat, 23 Jan 2021 12:30:09 +0000 (13:30 +0100)]
login/edit: share user override with widget

Fix admin editing of other profiles.

3 years agofoto: inline showthumb function to format img elements
Mischa POSLAWSKY [Fri, 15 Jan 2021 10:25:14 +0000 (11:25 +0100)]
foto: inline showthumb function to format img elements

Slight code simplification.

3 years agofoto: escape html (ampersands) in album links
Mischa POSLAWSKY [Fri, 15 Jan 2021 10:23:19 +0000 (11:23 +0100)]
foto: escape html (ampersands) in album links

Fix broken entity Lijtweg directory <verbouw&opknap>.

3 years agologin/admin: refer to edit link by updated appearance
Mischa POSLAWSKY [Fri, 15 Jan 2021 12:25:19 +0000 (13:25 +0100)]
login/admin: refer to edit link by updated appearance

Outdated since commit v4.4-16-gb168fd753d (2020-12-05)
[head: icons to abbreviate user and edit].

3 years agomake: fix missing domain name of fontello download
Mischa POSLAWSKY [Tue, 12 Jan 2021 02:38:21 +0000 (03:38 +0100)]
make: fix missing domain name of fontello download

Missing (and unnecessary) variable in commit v5.0-26-g38cf6657d2
(2021-01-10) [make rules to download fontello glyphs].

3 years agosearch: input form and extended results
Mischa POSLAWSKY [Mon, 11 Jan 2021 19:08:59 +0000 (20:08 +0100)]
search: input form and extended results

Already referenced from 404 page as ui for additional queries.

3 years agoedit/page: nbsp after initials, not unrelated abbreviations
Mischa POSLAWSKY [Mon, 11 Jan 2021 19:37:17 +0000 (20:37 +0100)]
edit/page: nbsp after initials, not unrelated abbreviations

Case-sensitive match; fix space after "i.v.m." not "I.V.M.".

3 years agoedit/page: ignore saving unaltered body
Mischa POSLAWSKY [Mon, 11 Jan 2021 18:52:34 +0000 (19:52 +0100)]
edit/page: ignore saving unaltered body

Do not overwrite an unaltered file, preventing mtime update and noop commit
(minor speedup).

3 years agoedit/page: save original request for commit message v5.1
Mischa POSLAWSKY [Thu, 7 Jan 2021 20:07:43 +0000 (21:07 +0100)]
edit/page: save original request for commit message

Minor code cleanup in not recreating the earlier name.

3 years agoedit/page: git directory relative to site root
Mischa POSLAWSKY [Thu, 7 Nov 2019 08:36:31 +0000 (09:36 +0100)]
edit/page: git directory relative to site root

No longer a subdirectory in Lijtweg since commit v2.6-134-g7b106a3076
(2018-09-21) [move www subdirectory to root].

3 years agoedit/head: keep login containers only if editable
Mischa POSLAWSKY [Thu, 7 Jan 2021 19:57:59 +0000 (20:57 +0100)]
edit/head: keep login containers only if editable

Fix logout hiding for admins with missing edit stylesheet.

3 years agomake rules to download fontello glyphs
Mischa POSLAWSKY [Tue, 5 Jan 2021 19:26:26 +0000 (20:26 +0100)]
make rules to download fontello glyphs

Common "build" code to obtain assets for site styling.

3 years agopage: allow remote access for xml requests
Mischa POSLAWSKY [Mon, 28 Dec 2020 02:41:50 +0000 (03:41 +0100)]
page: allow remote access for xml requests

Made for inclusion from scripts such as dashboard page.

3 years agoissue/activity: group replies by message topic
Mischa POSLAWSKY [Sat, 2 Jan 2021 04:28:52 +0000 (05:28 +0100)]
issue/activity: group replies by message topic

Keep selected threads chronologically, similar to Redmine activity.

3 years agoissue: drop report template of activity widget
Mischa POSLAWSKY [Mon, 28 Dec 2020 02:40:37 +0000 (03:40 +0100)]
issue: drop report template of activity widget

Page container to be implemented at sites.

3 years agopage: call handler through index method
Mischa POSLAWSKY [Tue, 29 Dec 2020 00:53:49 +0000 (01:53 +0100)]
page: call handler through index method

3 years agopage: only html body on application/xml requests
Mischa POSLAWSKY [Mon, 28 Dec 2020 02:33:21 +0000 (03:33 +0100)]
page: only html body on application/xml requests

3 years agopage: text/plain request triggers api mode
Mischa POSLAWSKY [Sun, 27 Dec 2020 18:46:06 +0000 (19:46 +0100)]
page: text/plain request triggers api mode

3 years agoprogress: disable submit button while posting
Mischa POSLAWSKY [Sun, 27 Dec 2020 02:46:55 +0000 (03:46 +0100)]
progress: disable submit button while posting

Prevent duplicates from unavoidable double clicks.

3 years agowidget/reply: redirect to created comment
Mischa POSLAWSKY [Sun, 27 Dec 2020 01:32:00 +0000 (02:32 +0100)]
widget/reply: redirect to created comment

Undo initial design of continuous uploads, rather have normal form behaviour
of showing feedback/results.

3 years agowidget/reply: load file upload progress indicator
Mischa POSLAWSKY [Thu, 9 Jan 2020 10:04:07 +0000 (11:04 +0100)]
widget/reply: load file upload progress indicator

Extend image upload script for any user form, with global support for
text/plain post interface (copied from Lijtweg upload controller designed
in v2.6-167-gd6338eb73e (2018-11-04) [hijack file input to show progress]).

3 years agoprogress: javascript to post image uploads
Mischa POSLAWSKY [Sun, 4 Nov 2018 15:29:29 +0000 (16:29 +0100)]
progress: javascript to post image uploads

Track code written for contact form at Lijtweg commit v2.6-167-gd6338eb73e
(2018-11-04) [upload: hijack file input to show progress] with updates until
v2.6-171-gb68eaa5bbd (2018-11-05) [upload: support multiple files]
in preparation of general reuse.

3 years agopage: api attribute indicate index requests
Mischa POSLAWSKY [Sun, 27 Dec 2020 18:33:48 +0000 (19:33 +0100)]
page: api attribute indicate index requests

Replaces userless calls for better fault tolerance and permission support.

3 years agoedit/foto/cover: replace fatal exceptions by abort()
Mischa POSLAWSKY [Fri, 26 Oct 2018 18:48:48 +0000 (20:48 +0200)]
edit/foto/cover: replace fatal exceptions by abort()

Code cleanup, identical behaviour.

3 years agopage: redirect location option in abort()
Mischa POSLAWSKY [Sun, 27 Dec 2020 18:44:33 +0000 (19:44 +0100)]
page: redirect location option in abort()

3 years agothumb: append .jpg extension to match file type
Mischa POSLAWSKY [Tue, 29 Dec 2020 00:08:11 +0000 (01:08 +0100)]
thumb: append .jpg extension to match file type

Rename example.png paths to example.png.jpg so its name corresponds to mime
type as warned by Dareboost.

3 years agothumb: content-length http header
Mischa POSLAWSKY [Tue, 29 Dec 2020 00:22:18 +0000 (01:22 +0100)]
thumb: content-length http header

Match [Apache] server output for cached files.
Still lacks ETag because PHP cannot calculate this (needs μs mtime).

3 years agothumb: only shrink larger images
Mischa POSLAWSKY [Sun, 27 Dec 2020 02:58:32 +0000 (03:58 +0100)]
thumb: only shrink larger images

Support smaller user uploads unscaled (with smaller file sizes), expecting
browser upscaling if necessary (lower quality should not be a problem).