Show the history of an edited issue/comment (possibly in the three dot menu).
Implement edit history #1441
I don't see any API which supports edits or the history of edits yet. If there is, feel free to share it here.
@mmarif There is such an API endpoint, but it is not documented for some reason.
Using the devtools, I can see that there is this endpoint:
https://{ instance.tld }/{ user }/{ repo }/issues/{ issue ID }/content-history/list?comment_id={ comment ID }
Then to get the previous comments, you use this endpoint:
https://{ instance.tld }/{ user }/{ repo }/issues/{ issue ID }/content-history/detail?comment_id={ comment ID }&history_id={ history ID }
History ID can be found in the JSON payload the first endpoint gives (value).
Here's also the code for it if it helps: forgejo.dev/forgejo.dev/forgejo@bebc244156/routers/web/repo/issue_content_history.go
@asudox maybe you have mixed the API and web calls. That is for web UI. Technically that is not an API.
Web UI endpoint:
https://codeberg.org/gitnex/GitNex/issues/1441/content-history/list?comment_id=3783113
API points looks like with different JSON payloads:
https://codeberg.org/api/v1/repos/issues/search?q=test
@mmarif whoops
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?