This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun lt/mastodon-toot--copy-orgified-toot-to-clipboard () | |
"Copy org-ified toot at point to clipboard." | |
(interactive) | |
(let* ((toot (or (mastodon-tl--property 'base-toot) | |
(mastodon-tl--property 'item-json)))) | |
(let* ((url (mastodon-toot--toot-url)) | |
(content (mastodon-tl--content toot))) | |
(-let* ((dom (plz 'get url :as #'org-web-tools--sanitized-dom)) | |
((title . readable) (org-web-tools--eww-readable dom))) | |
(with-temp-buffer |