I am able to login onto tumblr with tumblesocks in emacs! Hurrrrraaaah!
I had to replace oauth-build-signature-hmac-sha1 with
(defun oauth-build-signature-hmac-sha1 (req secret) "Returns the signature for the given request object" (let* ((token (oauth-request-token req)) (key (concat secret "&" (when token (oauth-t-token-secret token)))) (hmac-params (list (string-to-unibyte (encode-coding-string key 'utf-8 t)) (string-to-unibyte (encode-coding-string (oauth-build-signature-basestring-hmac-sha1 req) 'utf-8 t))))) (if oauth-hmac-sha1-param-reverse (setq hmac-params (reverse hmac-params))) (base64-encode-string (apply 'hmac-sha1 hmac-params))))
I receive a Hello, laejoh! Tumblesocks is working properly.
I also had to change
(flet ((shr-ensure-paragraph () 0))
in tumblesocks-view-insert-parsed-html-fragment with
(cl-flet ((shr-ensure-paragraph () 0))
I have a dashboard in my editor of choice now but maybe there are more errors lurking around.
I can now post to tumblr from within my editor of choice! It looks like this:


















