From 35a896aaf700e68f92883e93ce4cc4c3d1196ae6 Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Tue, 18 Apr 2017 09:17:25 -0400 Subject: Rename mastodon-toot--property and move to tl feature --- lisp/mastodon-toot.el | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lisp/mastodon-toot.el') diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index ff20434..d677f5d 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -61,18 +61,11 @@ STATUS is passed by `url-retrieve'." (interactive) (kill-buffer-and-window)) -(defun mastodon-toot--property (prop) - "Get property PROP for toot at point." - (or (get-text-property (point) prop) - (progn - (mastodon-tl--goto-next-toot) - (get-text-property (point) prop)))) - ;; TODO extract success callback (defun mastodon-toot--boost () "Boost toot at point." (interactive) - (let* ((id (mastodon-toot--property 'toot-id)) + (let* ((id (mastodon-tl--property 'toot-id)) (url (mastodon--api-for (concat "statuses/" (number-to-string id) "/reblog")))) -- cgit v1.2.3