Compare commits

...

3 commits

Author SHA1 Message Date
e69f53bbd7 Note down a bug for later fixing
All checks were successful
/ docker (push) Successful in 4m26s
2025-05-13 14:07:15 +02:00
2b93d51be1 Add (for now) empty route for note reactions 2025-05-13 14:06:57 +02:00
e06d955f98 Rename objectNote to just note and delete empty file 2025-05-13 14:05:17 +02:00
5 changed files with 10 additions and 1 deletions

View file

@ -13,6 +13,10 @@ type UserToUserRelation struct {
} }
type IUserToUserRelation interface { type IUserToUserRelation interface {
// FIXME: Include local users in these queries
// Currently local users don't have an entry in user_remote_links
// causing them to be ignored by these functions as of now
// Get all inbox links for accounts following the user with the specified id // Get all inbox links for accounts following the user with the specified id
// //
// SELECT u.inbox_link // SELECT u.inbox_link

View file

@ -16,5 +16,6 @@ func BuildActivitypubRouter() http.Handler {
router.HandleFunc("/activity/reject/{id}", activityReject) router.HandleFunc("/activity/reject/{id}", activityReject)
router.HandleFunc("/activity/update/{id}", activityUpdate) router.HandleFunc("/activity/update/{id}", activityUpdate)
router.HandleFunc("/note/{id}", objectNote) router.HandleFunc("/note/{id}", objectNote)
router.HandleFunc("/note/{id}/reactions", noteReactions)
return router return router
} }

View file

@ -1 +0,0 @@
package activitypub

View file

@ -0,0 +1,5 @@
package activitypub
import "net/http"
func noteReactions(w http.ResponseWriter, r *http.Request) {}