Overview
Comment: | fix the VIP/sage function |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
268b82975169e4ddbbbce8e5ce900813 |
User & Date: | anon on 2023-09-09 09:13:34 |
Other Links: | branch diff | manifest | tags |
Context
2024-02-29
| ||
20:07 | Fix detection of references in 'sbbs-show-replies' The 'sbbs-ref' property was not stored in the overlay, but as a text-property inside the buffer. For that reason, it would always find no references, even if there were references in the same thread. check-in: 830ca8047f user: zge tags: master, trunk | |
2023-09-09
| ||
09:17 | fix VIP/sage function check-in: d9a94adf9b user: anon tags: ben-hotfixes | |
09:13 | fix the VIP/sage function check-in: 268b829751 user: anon tags: master, trunk | |
2022-01-24
| ||
09:35 | Replace formatting when using a prefix argument check-in: 1db3d1b5c3 user: zge tags: master, trunk | |
Changes
Modified sbbs.el from [d00835b8b8] to [bf2e481917].
696 696 (replace-match "" nil nil nil 1))) 697 697 698 698 (defun sbbs-compose-create (vip) 699 699 "Upload response or thread to board. 700 700 If VIP is non-nil (or when invoked with a prefix argument), mark 701 701 the post as \"VIP\", ie. don't bump the thread." 702 702 (interactive "P") 703 - (when (and vip sbbs--thread-id) 703 + (when (and vip (not sbbs--thread-id)) 704 704 (user-error "A new thread cannot be VIP")) 705 705 (let ((board sbbs--board) 706 706 (url-request-method "POST") 707 707 (url-request-extra-headers 708 708 '(("Content-Type" . "application/x-www-form-urlencoded"))) 709 709 (url-request-data 710 710 (url-build-query-string 711 711 `((epistula ,(buffer-string)) 712 712 (ornamentum "") (name "") (message "") 713 713 (frontpage ,(if sbbs--thread-id "true" "false")) 714 - (vip ,(if vip "true" "false")) 714 + ,(if vip `(vip "on") nil) 715 715 . ,(and (not sbbs--thread-id) 716 716 `((titulus ,(read-string "Headline: "))))))) 717 717 (url (if sbbs--thread-id 718 718 (sbbs--board-url (format "%d/post" sbbs--thread-id)) 719 719 (sbbs--board-url "/post")))) 720 720 (url-retrieve url (lambda (status buf) 721 721 (if (plist-get status :error)