X-Git-Url: https://git.ladys.computer/x_status_git/blobdiff_plain/d5d7c05e0493fdd25574d9afd1781529c3eff695..ef3a7dd331debfcd8d511e569984a8384cc70a56:/post-receive?ds=inline diff --git a/post-receive b/post-receive index 9698ba4..948734d 100755 --- a/post-receive +++ b/post-receive @@ -76,9 +76,9 @@ if stdin.read().split()[-1] == f"refs/heads/{LIVE_BRANCH}": status["subject"] = topic author_path = next(path.parent.glob("1=*"), None) if author_path: - status["author"] = { "name": author_path.name[2:] } + status["creator"] = { "name": author_path.name[2:] } with author_path.open("r", encoding="utf-8") as text: - status["author"]["@id"] = text.read().strip() + status["creator"]["@id"] = text.read().strip() title_path = next(path.parent.glob("2=*"), None) if title_path: with title_path.open("r", encoding="utf-8") as text: @@ -160,11 +160,11 @@ if stdin.read().split()[-1] == f"refs/heads/{LIVE_BRANCH}": publishedElt = entryElt.appendChild(doc.createElement("published")) publishedElt.appendChild(doc.createTextNode(item["created"])) authorElt = entryElt.appendChild(doc.createElement("author")) - if "author" in item: + if "creator" in item: nameElt = authorElt.appendChild(doc.createElement("name")) - nameElt.appendChild(doc.createTextNode(item["author"]["name"])) + nameElt.appendChild(doc.createTextNode(item["creator"]["name"])) uriElt = authorElt.appendChild(doc.createElement("uri")) - uriElt.appendChild(doc.createTextNode(item["author"]["@id"])) + uriElt.appendChild(doc.createTextNode(item["creator"]["@id"])) else: nameElt = authorElt.appendChild(doc.createElement("name")) nameElt.appendChild(doc.createTextNode("Anonymous"))