]> Lady’s Gitweb - x_status_git/blobdiff - post-receive
Support titles on statuses
[x_status_git] / post-receive
index bc16a55fab558b444134ae5a4197b7a69652e801..e1da847d92113611b02bc89ef9f700f7a667982d 100755 (executable)
@@ -70,6 +70,11 @@ if stdin.read().split()[-1] == f"refs/heads/{LIVE_BRANCH}":
                        status["author"] = { "name": author_path.name[2:] }
                        with author_path.open("r", encoding="utf-8") as text:
                                status["author"]["@id"] = text.read().strip()
+               title_path = next(path.parent.glob("2=*"))
+               if title_path:
+                       with title_path.open("r", encoding="utf-8") as text:
+                               title = text.read().strip()
+                               status["title"] = title
                date_path = next(path.parent.glob("3=*"))
                datetime = ""
                if date_path:
This page took 0.026011 seconds and 4 git commands to generate.