forgejo/routers
fluzz c524d33402 WIP: Add an 'updated_at' field to the EditIssueOption struct
This field adds the possibility to set the update date when modifying
an issue through the API.

A 'NoAutoDate' in-memory field is added in the Issue struct.
If the update_at field is set, NoAutoDate is set to true and the
Issue's UpdatedUnix field is filled.

That information is passed down to the functions that actually updates
the database, which have been modified to not auto update dates if
requested.

A guard is added to the 'EditIssue' API call, to checks that the
udpate_at date is between the issue's creation date and the current
date (to avoid 'malicious' changes). It also limits the new feature
to project's owners and admins.
2023-08-24 12:10:31 +02:00
..
api WIP: Add an 'updated_at' field to the EditIssueOption struct 2023-08-24 12:10:31 +02:00
common Start using template context function (#26254) 2023-08-08 01:22:47 +00:00
install Handle base64 decoding correctly to avoid panic (#26483) 2023-08-14 10:30:16 +00:00
private [CLI] implement forgejo-cli 2023-08-22 07:54:39 +02:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web [API] Forgejo API /api/forgejo/v1 2023-08-22 08:41:55 +02:00
init.go [API] Forgejo API /api/forgejo/v1 2023-08-22 08:41:55 +02:00