mirror of https://gitlab.com/bashrc2/epicyon
Publication date format
parent
8b56db72c0
commit
333cc78056
|
@ -2045,6 +2045,7 @@ def vf_proposal_from_share(shared_item: {},
|
||||||
om2_link = \
|
om2_link = \
|
||||||
"http://www.ontology-of-units-of-measure.org/resource/om-2/"
|
"http://www.ontology-of-units-of-measure.org/resource/om-2/"
|
||||||
share_id = _vf_share_id(shared_item['shareId'])
|
share_id = _vf_share_id(shared_item['shareId'])
|
||||||
|
published = date_seconds_to_string(shared_item['published'])
|
||||||
offer_item = {
|
offer_item = {
|
||||||
"@context": [
|
"@context": [
|
||||||
"https://www.w3.org/ns/activitystreams",
|
"https://www.w3.org/ns/activitystreams",
|
||||||
|
@ -2071,7 +2072,7 @@ def vf_proposal_from_share(shared_item: {},
|
||||||
"attributedTo": shared_item['actor'],
|
"attributedTo": shared_item['actor'],
|
||||||
"name": shared_item['displayName'],
|
"name": shared_item['displayName'],
|
||||||
"content": shared_item['summary'],
|
"content": shared_item['summary'],
|
||||||
"published": shared_item['published'],
|
"published": published,
|
||||||
"publishes": {
|
"publishes": {
|
||||||
"type": "Intent",
|
"type": "Intent",
|
||||||
"id": share_id + '#primary',
|
"id": share_id + '#primary',
|
||||||
|
|
Loading…
Reference in New Issue