Commit Graph

13454 Commits (e60158c70b831c0c45aa147c3571d8a6a870e27c)
 

Author SHA1 Message Date
Anthony Wang e60158c70b
Make sure API responses always refer to username in original case
Copied from what I wrote on #19133 discussion: Handling username case is a very tricky issue and I've already encountered a Mastodon <-> Gitea federation bug due to Gitea considering Ta180m and ta180m to be the same user while Mastodon thinks they are two different users. I think the best way forward is for Gitea to only use the original case version of the username for federation so other AP software don't get confused.
3 years ago
Anthony Wang add8469813
Merge branch 'feature-activitypub' of github.com:Ta180m/Gitea into feature-activitypub 3 years ago
6543 3f2d8b015f
dont drop err 3 years ago
6543 900ceb2dfd
make fmt 3 years ago
6543 2706e89138
Merge branch 'main' into feature-activitypub 3 years ago
Anthony Wang 08eebffb0e
Make sure HTTP request Date in GMT 3 years ago
Anthony Wang d749f8ff4f
Rename pkey to pubKey 3 years ago
singuliere 460c03ca49 [skip ci] Updated translations via Crowdin 3 years ago
Anthony Wang 3e9a69c8d3
Use UTC instead of GMT 3 years ago
Anthony Wang f88979326c
Make sure Person endpoint has Content-Type application/activity+json and includes PreferredUsername, URL, and Icon
Setting the correct Content-Type is essential for federating with Mastodon
3 years ago
Anthony Wang ed2a6f5348
make lint-backend 3 years ago
Anthony Wang 718f35aab6
Merge remote-tracking branch 'upstream/main' into feature-activitypub 3 years ago
Anthony Wang b6b7fe27b6
WebFinger: Add CORS header and fix Href -> Template for remote interactions
The CORS header is needed due to https://datatracker.ietf.org/doc/html/rfc7033#section-5 and fixes some Peertube <-> Gitea federation issues
3 years ago
singuliere 1fef9a2d69
Remove singuliere from MAINTAINERS (#19883) 3 years ago
wxiaoguang 0d7eda511f
Fix aria for logo (#19955)
Co-authored-by: 6543 <6543@obermui.de>
3 years ago
Lunny Xiao ff82a18315
Fix mirror template bug (#19959)
* Fix mirror template bug

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
3 years ago
Anthony Wang a5b00ec4a5
Force CI rerun 3 years ago
Anthony Wang d7b81f551d
make fmt 3 years ago
Lunny Xiao 3c6c150740
Add deprecated log when using MySQL with utf8 charset (#19952) 3 years ago
Lunny Xiao 1a9821f57a
Move issues related files into models/issues (#19931)
* Move access and repo permission to models/perm/access

* fix test

* fix git test

* Move functions sequence

* Some improvements per @KN4CK3R and @delvh

* Move issues related code to models/issues

* Move some issues related sub package

* Merge

* Fix test

* Fix test

* Fix test

* Fix test

* Rename some files
3 years ago
yutotnh 3708ca8e28
fix: some typos (#19956) 3 years ago
Anthony Wang d91c61f8fa
Update TestWebFinger to check for ActivityPub IRI in aliases 3 years ago
Lunny Xiao 5f136783d1 [skip ci] Updated translations via Crowdin 3 years ago
Anthony Wang 5823d8150a
Add actor IRI and remote interaction URL to WebFinger response 3 years ago
Anthony Wang 191919e7fa
Merge remote-tracking branch 'upstream/main' into feature-activitypub 3 years ago
Anthony Wang d1f14ff2c7
Move httpsig algos slice to an init() function 3 years ago
Lunny Xiao 110fc57cbc
Move some code into models/git (#19879)
* Move access and repo permission to models/perm/access

* fix test

* Move some git related files into sub package models/git

* Fix build

* fix git test

* move lfs to sub package

* move more git related functions to models/git

* Move functions sequence

* Some improvements per @KN4CK3R and @delvh
3 years ago
wxiaoguang a9dc9b06e4
Fix signal loop in graceful manager (#19943) 3 years ago
Gusted 796c4eca0b
Prettify number of issues (#17760)
* Prettify number of issues

- Use the PrettyNumber function to add commas in large amount of issues.

* Use client-side formatting

* prettify on both server and client

* remove unused i18n entries

* handle more cases, support other int types in PrettyNumber

* specify locale to avoid issues with node default locale

* remove superfluos argument

* introduce template helper, octicon tweaks, js refactor

* Update modules/templates/helper.go

* Apply some suggestions.

* Add comment

* Update templates/user/dashboard/issues.tmpl

Co-authored-by: silverwind <me@silverwind.io>

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago
Gusted 0097fbc2ac
Improve file header on mobile (#19945)
- File headers can become quite width, so ensure the file size is not
being wrapped into itself(width + padding-right) and allow the overflow
to be scrolled(overflow-x).
3 years ago
Gusted edf14202fe
Unify repo settings & show better error (#19828)
* Unify context data
* Actually show invalid url in error
3 years ago
Anthony Wang 76f06cee31
Remove another LogSQL from ActivityPub person test 3 years ago
Anthony Wang 6074222377
Code cleanup 3 years ago
xkcdstickfigure 3898fc5bda [skip ci] Updated translations via Crowdin 3 years ago
Anthony Wang 7658649d61
Merge remote-tracking branch 'upstream/main' into feature-activitypub 3 years ago
xkcdstickfigure 47bb06236d
fixed comment typo (#19944) 3 years ago
Anthony Wang 528c282d68
Correctly add inbox/outbox IRIs to person 3 years ago
Anthony Wang cf6aed386d
Use @mariusor's suggestions for idiomatic go-ap usage 3 years ago
6543 f7da251c5d
Merge branch 'main' into feature-activitypub 3 years ago
6543 a9cc9c0f7a
Auto merge pull requests when all checks succeeded via WebUI (#19648)
Add WebUI part of Auto merge feature

close #19621

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
3 years ago
Lunny Xiao ce3dd04c63
Fix some mirror bugs (#18649)
* Fix some mirror bugs

* Remove unnecessary code

* Fix lint

* rename stdard url

* Allow more charactors in git ssh protocol url

* improve the detection

* support ipv6 for git url parse

* Fix bug

* Fix template

* Fix bug

* fix template

* Fix tmpl

* Fix tmpl

* Fix parse ssh with interface

* Rename functions name

Co-authored-by: zeripath <art27@cantab.net>
3 years ago
wxiaoguang 88f2e457d8
Fix data-race problems in git module (quick patch) (#19934)
* Fix data-race problems in git module

* use HomeDir instead of setting.RepoRootPath

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago
silverwind 23422f9909 [skip ci] Updated translations via Crowdin 3 years ago
Anthony Wang 66b1761738
Fix lint error 3 years ago
Anthony Wang 7428ff0736
Fix TestActivityPubPersonInbox segfault 3 years ago
Anthony Wang fc58ab6b25
Force CI rerun 3 years ago
Anthony Wang d487a76572
Correctly decode JSON in api_activitypub_person_test.go 3 years ago
Anthony Wang 86a3221563
Fix CI errors by adding @context to Person() and making sure types match 3 years ago
Anthony Wang 46cab80ef4
Fix JSON unmarshall error 3 years ago
silverwind 527e5bd1b2
Fix copy/paste of empty lines (#19798)
* Fix copy/paste of empty newlines again

Fixes: https://github.com/go-gitea/gitea/issues/19331
Regressed by: https://github.com/go-gitea/gitea/pull/18270

Needed to do another newline addition to the Chroma output HTML to get
copy/paste work again. The previous replacement conditions are probably
obsolete, but as I'm not 100% sure, I opted to keep them.

Specifically, the Chroma HTML change mentioned in
https://github.com/go-gitea/gitea/pull/18270#issuecomment-1013350246
broke our previous newline replacement for such empty lines.

Also included are a few changes to make the test more pleasant to work
with.

* run go mod tidy

* add util.Dedent

* copy in the code

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
3 years ago