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:
parent
d4d45c6fe7
commit
7b26d5d918
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue