Commit Graph
11 Commits
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.
2022-06-14 12:01:41 -05:00
Anthony Wang 08eebffb0e Make sure HTTP request Date in GMT 2022-06-13 23:10:36 -05:00
Anthony Wang d749f8ff4f Rename pkey to pubKey 2022-06-13 20:51:49 -05:00
Anthony Wang 6074222377 Code cleanup 2022-06-11 21:15:45 -05:00
Anthony Wang becdf5e1f1 Use go-ap instead of go-fed 2022-05-23 11:43:59 -05:00
Anthony Wang 1da0d49de7 Clean up some variable declarations 2022-03-30 15:52:52 -05:00
Anthony Wang 21c56f8e94 Use the httplib module instead of http for GET requests 2022-03-27 12:25:27 -05:00
Anthony Wang 46973f99fa Cleanup, handle invalid usernames for ActivityPub person GET request
Signed-off-by: Anthony Wang <ta180m@pm.me>
2022-03-24 18:44:44 -05:00
Anthony Wang f9e33d97cc Run make fmt and make generate-swagger
Signed-off-by: Anthony Wang <ta180m@pm.me>
2022-03-19 09:14:08 -05:00
Anthony Wang b480c52f60 Change 2021 to 2022, properly format package imports
Signed-off-by: Anthony Wang <ta180m@pm.me>
2022-03-19 08:55:58 -05:00
Loïc DacharyandAnthony Wang 97fedf2616 activitypub: implement the ReqSignature middleware
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-03-18 17:34:09 -05:00