1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 17:04:52 +09:00

Use 'context' for Commit's repo, instead of 'repository'

This commit is contained in:
fr33domlover 2019-08-28 16:20:19 +00:00
parent d4d45c6fe7
commit 7b26d5d918

View file

@ -896,7 +896,7 @@ instance ActivityPub Commit where
ObjURI a id_ <- o .: "id"
fmap (a,) $
Commit id_
<$> withAuthorityO a (o .: "repository")
<$> withAuthorityO a (o .: "context")
<*> o .:+ "attributedTo"
<*> o .:+? "committedBy"
<*> o .: "name"
@ -909,7 +909,7 @@ instance ActivityPub Commit where
(Commit id_ repo author committer title hash mdesc written mcommitted)
= "id" .= ObjURI authority id_
<> "type" .= ("Commit" :: Text)
<> "repository" .= ObjURI authority repo
<> "context " .= ObjURI authority repo
<> "attributedTo" .=+ author
<> "committedBy" .=+? committer
<> "name" .= title