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

Fix form_key element #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix form_key element #218

wants to merge 1 commit into from

Conversation

gkojax
Copy link
Member

@gkojax gkojax commented Jun 21, 2017

No description provided.

@ykws
Copy link

ykws commented Jun 22, 2017

@gkojax Which issues have solved by this pull request?

@gkojax
Copy link
Member Author

gkojax commented Jun 24, 2017

すみません、書き忘れました。 #216 の対応です。

@ykws
Copy link

ykws commented Jun 24, 2017

@gkojax ありがとうございます。

#216 の正確な手順がわからないですが、 Reblog するとこの対応をマージしても同じエラーとなりました。
そちらの環境では改善されていますか?

@@ -369,10 +369,10 @@ var Tumblr = update({}, AbstractSessionService, {
getInfo() {
return this.getDashboard().addCallback(doc => {
let info = {};
let element = doc.querySelector('input[name="form_key"]');
let element = doc.querySelector('input[name="form_key"]') || doc.querySelector('input[name="tumblr_form_key"]');
Copy link

@ailispaw ailispaw Jul 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input[name="tumblr_form_key"] の部分は input ではなく、meta です。

<meta name="tumblr-form-key" id="tumblr_form_key" content="xxxx">

微妙ですが、

meta[id="tumblr_form_key"] or meta[name="tumblr-form-key]"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。
#216 の手順とは異なるかもしれませんが、 Reblog ができるようになることを確認できました。

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

Successfully merging this pull request may close these issues.

3 participants