Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liking and reblogging of dashboard view posts impossible #18

Open
rrix opened this issue Jul 27, 2015 · 0 comments
Open

Liking and reblogging of dashboard view posts impossible #18

rrix opened this issue Jul 27, 2015 · 0 comments

Comments

@rrix
Copy link

rrix commented Jul 27, 2015

To be able to like and reblog posts from the dashboard, I have to install this advice:

(defadvice tumblesocks-api-blog-posts (around rrix/hack-tumblesocks-api)
  "Hack the tumblesocks API to properly work on the dashboard"
  (let* ((post-data (get-text-property (point) 'tumblesocks-post-data))
         (blog-name (plist-get post-data :blog_name))
         (tumblesocks-blog (concat blog-name ".tumblr.com")))
    ad-do-it))
(ad-activate 'tumblesocks-api-blog-posts)

It pulls the post name out of tumblesocks-post-data, which I feel is the sane way to do it, generally, but then it just binds on top of tumblesocks-blog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant