fix the api resource uri for repo

This commit is contained in:
Michael Jerger 2023-10-16 09:04:12 +02:00
parent 5410df1a03
commit 354948eb01

View file

@ -119,13 +119,13 @@
{::sut/id "https://repo.prod.meissa.de/api/users/jem/like/12345",
::sut/type "Like",
::sut/actor "https://repo.prod.meissa.de/api/users/jem",
::sut/object "https://codeberg.org/forgejo/forgejo.git"})))
::sut/object "https://codeberg.org/api/repos/forgejo/forgejo"})))
(testing "using activitypub api uris for id refernce"
(is (s/valid? ::sut/Like
{::sut/id "https://repo.prod.meissa.de/api/activitypub/user-id/1/outbox/12345",
::sut/type "Like",
::sut/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1",
::sut/object "https://codeberg.org/forgejo/forgejo.git"})))
::sut/object "https://codeberg.org/api/repos/forgejo/forgejo"})))
))
(deftest Object-test