mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-28 09:44:51 +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"
|
ObjURI a id_ <- o .: "id"
|
||||||
fmap (a,) $
|
fmap (a,) $
|
||||||
Commit id_
|
Commit id_
|
||||||
<$> withAuthorityO a (o .: "repository")
|
<$> withAuthorityO a (o .: "context")
|
||||||
<*> o .:+ "attributedTo"
|
<*> o .:+ "attributedTo"
|
||||||
<*> o .:+? "committedBy"
|
<*> o .:+? "committedBy"
|
||||||
<*> o .: "name"
|
<*> o .: "name"
|
||||||
|
@ -909,7 +909,7 @@ instance ActivityPub Commit where
|
||||||
(Commit id_ repo author committer title hash mdesc written mcommitted)
|
(Commit id_ repo author committer title hash mdesc written mcommitted)
|
||||||
= "id" .= ObjURI authority id_
|
= "id" .= ObjURI authority id_
|
||||||
<> "type" .= ("Commit" :: Text)
|
<> "type" .= ("Commit" :: Text)
|
||||||
<> "repository" .= ObjURI authority repo
|
<> "context " .= ObjURI authority repo
|
||||||
<> "attributedTo" .=+ author
|
<> "attributedTo" .=+ author
|
||||||
<> "committedBy" .=+? committer
|
<> "committedBy" .=+? committer
|
||||||
<> "name" .= title
|
<> "name" .= title
|
||||||
|
|
Loading…
Reference in a new issue