Commit graph

18 commits

Author SHA1 Message Date
087165a993 Show error if STATUS isn't one of the accepted values 2023-12-07 22:31:54 -08:00
cf761c40a5 Extract data parsing into separate function 2023-12-07 22:21:50 -08:00
8bd0ba25e4 Make sure that ‘tekuti-host’ doesn't end in a ‘/’
Tekuti gets real confused when a request is sent to
https://tekuti.example.com//admin/new-post claiming that the host field is
missing. From my logs:

    Throw to key `uri-error' with args `("Expected path not starting with
    \"//\" (no host): ~a" ("//admin/new-post"))'.
2023-12-07 22:06:26 -08:00
0f663fabc6 Display a different message for an update rather than create 2023-12-07 21:59:45 -08:00
d41e65e406 Fix creating new posts 2023-04-12 01:00:48 -07:00
6016689a74 Store and use the update path for a post once it's been created
This way I can keep sending the post to update it in place.
2023-04-12 00:45:40 -07:00
91488f1358 Fix ‘pcase-exhaustive’ cases
There's more information in the ‘status’ variable than just what I extract. The
‘. ,_’ matches anything else into a discard pattern so that I'm only getting the
data I need.
2023-04-12 00:44:02 -07:00
7c531e3ab3 Fix setting the comment status open/closed 2023-04-12 00:42:49 -07:00
b2fc64d2b0 Fix reading the date and time published
‘org-timestamp-from-string’ doesn't read dates like “Wed, 12 Apr 2023 07:02:45
GMT”
2023-04-12 00:41:02 -07:00
0d935dc649 Fix package name in pages build 2022-03-23 19:09:06 -07:00
cd8f49df25 Fix typo in .builds directory name 2022-03-23 19:06:46 -07:00
ba5d9c29f3 Set up automated builds on Sourcehut
This builds both a package archive and the readme.
2022-03-23 19:05:29 -07:00
39ba8e49d6 Add version header 2022-03-23 18:58:00 -07:00
bc5af18647 Update metadata in org file after sending 2021-06-24 23:00:11 -07:00
7ce1d86c05 Add defaults for the data from the org buffer 2021-06-24 22:02:52 -07:00
7b5322b313 Fix some warnings
- Add dependency on org-mode in case I ever install this as a package.
- Require org for `org-collect-keywords', `org-timestamp-to-time',
  `org-timestamp-from-string', and `org-html-export-as-html'.
- Move definition of `tekuti-host' to before it's used.
- Rename `args' to `_' to signify it's not used for anything.
2021-06-24 21:19:25 -07:00
0aee0a3631 Move date conversion into a function 2021-06-24 21:09:22 -07:00
80ab0599af Initial commit 2021-06-03 23:26:47 -07:00