aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-18Merge branch 'feature-go-ap-inbox-outbox'oldAnthony Wang
2022-06-18Merge branch 'feature-activitypub' into feature-go-ap-inbox-outboxAnthony Wang
2022-06-18make fmtAnthony Wang
2022-06-18go mod tidyAnthony Wang
2022-06-18Merge branch 'feature-activitypub' into feature-go-ap-inbox-outboxAnthony Wang
2022-06-18Change Gitea user agent from the default to Gitea/VersionAnthony Wang
2022-06-18Use go-ap/jsonld to add @context and marshal JSONAnthony Wang
2022-06-18Merge branch 'main' into feature-activitypub6543
2022-06-18Dump should only copy regular files and symlink regular files (#20015)v1.18.0-devwxiaoguang
2022-06-18Merge branch 'main' into feature-activitypub6543
2022-06-18[skip ci] Updated translations via Crowdinzeripath
2022-06-18[skip ci] Updated translations via Crowdinzeripath
2022-06-18Add fgprof pprof profiler (#20005)zeripath
fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as Off-CPU (e.g. I/O) time together. Go's builtin sampling CPU profiler can only show On-CPU time, but it's better than fgprof at that. Go also includes tracing profilers that can analyze I/O, but they can't be combined with the CPU profiler. fgprof is designed for analyzing applications with mixed I/O and CPU workloads. This kind of profiling is also known as wall-clock profiling. Whilst fgprof can cause significant STW latencies in applications with a lot of goroutines (> 1-10k), these latencies only occur if the profile is requested - it doesn't cause a delay by simply being available. The fgprof profile is mounted on `http://localhost:6060/debug/fgprof?seconds=3` Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-06-18[skip ci] Updated translations via Crowdinzeripath
2022-06-18Improve action table indices (#19472)zeripath
2022-06-18Add dbconsistency checks for Stopwatches (#20010)zeripath
It appears possible that stopwatches can become orphaned or have been orphaned in the past. This PR adds Orphan checks for Stopwatches. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-06-18fix push mirrors URL are no longer displayed on the UI (#20011)Mohamed Sekour
* fix push mirrors URL are no longer displayed on the UI Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com> * Update modules/templates/helper.go Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-06-18Empty log queue on flush and close (#19994)zeripath
* Empty log queue on flush and close It is possible for log events to remain in the buffer off the multichannelledlog and thus not be logged despite close or flush. This PR simply adds a function to empty the queue before closing or flushing. (Except when the logger is paused.) Reference #19982 Signed-off-by: Andrew Thornton <art27@cantab.net> * and do similar for ChannelledLog Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-06-18[skip ci] Updated translations via Crowdinzeripath
2022-06-17Stop spurious APIFormat stopwatches logs (#20008)zeripath
If there are dangling stopwatches with missing issues there will be repeated logging of Unable to APIFormat stopwatches. These are unhelpful and instead we should only log if the error is not an issue not exist error. And we should also prevent an error on missing issue in GetActiveStopwatch too Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-06-17Fix CountOrphanedLabels in orphan check (#20009)zeripath
gitea doctor --run check-db-consistency is currently broken due to an incorrect and old use of Count() with a string. Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-06-17Write Commit-Graphs in RepositoryDumper (#20004)zeripath
When migrating git repositories we should ensure that the commit-graph is written. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: delvh <dev.lh@web.de>
2022-06-17Add fetch.writeCommitGraph to gitconfig (#20006)zeripath
Add fetch.writeCommitGraph to gitconfig to ensure that a commit-graph will be written on git fetch calls. Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-06-17Add ed25519 to httpsig algorithmsAnthony Wang
2022-06-17move agit dependcy (#19998)Lunny Xiao
2022-06-17Merge branch 'feature-activitypub' into feature-go-ap-inbox-outboxAnthony Wang
2022-06-17go mod tidyAnthony Wang
2022-06-17Update go-ap to fix empty liked collection and removed unneeded HTTP headersAnthony Wang
2022-06-17Fix a JS error in initRepoCommitLastCommitLoader's entryMap (#19996)wxiaoguang
2022-06-17gitconfig: set safe.directory = * (#19870)singuliere
Allow git push to work when networked file systems with mixed ownership are used with Gitea docker images >= 1.16.6 or Gitea binaries running alongside git versions published after 04/2022. There are circumstances independent of Gitea (networked file systems with various permission systems) by which the git repositories managed by Gitea may have mixed owners. It is not a behavior that Gitea have control over nor is it a problem as long as the permissions for Gitea to operate are correct. Gitea instances have been operating under these conditions for a number of years. It is detected as a potential security risk ( see GHSA-vw2c-22j4-2fh2 ) by the most recent git versions. However, Gitea always runs git commands with a current directory matching the repository on which it operates. That makes Gitea immune from this security problem and it is safe to ignore the mixed owner permission check. This gitconfig modification is done on a file dedicated to the user exclusively used by Gitea. Fixes: #19455 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
2022-06-17Fix Readme render bug (#19992)Lunny Xiao
Fix #19988 Co-authored-by: zeripath <art27@cantab.net>
2022-06-17Delete duplicated update btn on pull request view page (#19993)Lunny Xiao
Fix #19987
2022-06-16Use DisplayName() instead of FullName in Oauth provider (#19991)oGi4i
Use DisplayName() in Oauth as this provides a fallback if FullName is not set. Closes #19382
2022-06-16Merge branch 'feature-activitypub' into feature-go-ap-inbox-outboxAnthony Wang
2022-06-16Implement Repository actor endpointsAnthony Wang
2022-06-16Merge branch 'main' into feature-activitypub6543
2022-06-16fix permission check for delete tag (#19985)a1012112796
fix #19970 by the way, fix some error response about protected tags. Signed-off-by: a1012112796 <1012112796@qq.com>
2022-06-16Rate limit federation requests/responses and add better commentsAnthony Wang
2022-06-16Merge branch 'feature-activitypub' into feature-go-ap-inbox-outboxAnthony Wang
2022-06-16More code cleanupAnthony Wang
2022-06-16make generate-swagger to fix typosAnthony Wang
I didn't know that templates/swagger/v1_json.tmpl was machine-generated... 😭
2022-06-16Merge branch 'feature-activitypub' into feature-go-ap-inbox-outboxAnthony Wang
2022-06-16Merge remote-tracking branch 'upstream/main' into feature-activitypubAnthony Wang
2022-06-16Move getting the RFC 2616 time to a separate functionAnthony Wang
2022-06-16make generate-swaggerAnthony Wang
For some reason I didn't realize that /templates/swagger/v1_json.tmpl was machine-generated by make generate-swagger... I've been editing it by hand for three months! 🤦
2022-06-16[skip ci] Updated translations via Crowdinwxiaoguang
2022-06-16Fix failing ActivityPubMissingPerson testAnthony Wang
We now use ctx.ContextUser so the message printed out when a user does not exist is slightly different
2022-06-16Add more better commentsAnthony Wang
2022-06-16Don't multiply Federation.MaxSize by 1<<20 twiceAnthony Wang
2022-06-16Add better commentsAnthony Wang