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

[#2095] temporarily disable LJRossia crossposts #2104

Merged
merged 3 commits into from Apr 15, 2017

Conversation

kareila
Copy link
Member

@kareila kareila commented Apr 13, 2017

This removes LJRossia from the "Add External Account" form and preemptively fails any attempts to crosspost there.

It turns out that failing the job doesn't automatically notify the user, so we also make sure to send a notification to inform the user of the current situation.

Fixes #2095.

This removes LJRossia from the "Add External Account" form
and preemptively fails any attempts to crosspost there.

The reason for doing this is because the crosspost attempt
is returning a confusing message to the user about not
being able to locate LJ/XMLRPC.pm on the remote site.
It turns out that failing the job doesn't automatically
notify the user, so make sure to send a notification
to inform the user of the current situation.
};

# LJRossia is temporarily broken, so skip - but we do want to notify
if ( $acct->externalsite && $acct->externalsite->{sitename} eq 'LJRossia' ) {
Copy link
Member

Choose a reason for hiding this comment

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

Wow, is this really the best way of doing this?! Hardcoding like this feels pretty sad, but I guess the original design of the xpost system didn't take into account that we might want to administratively disable things? I don't recall thinking of this use case :)

Copy link
Member

@zorkian zorkian left a comment

Choose a reason for hiding this comment

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

So, question: is there a difference to behavior if we just skip LJRossia in these two places vs removing it from the external sites list?

@kareila
Copy link
Member Author

kareila commented Apr 15, 2017

If we remove it from the external sites list entirely, then all the other functionality provided by DW::External::Site, like userheads, will stop working as well.

@zorkian
Copy link
Member

zorkian commented Apr 15, 2017

We have no way to say 'this is an external site that doesn't allow crossposting'? I could have sworn that was a flag we had to turn on or off?

@kareila
Copy link
Member Author

kareila commented Apr 15, 2017

It's dependent on "servicetype" - if we update the list to say it's not an LJ-based site, that will do it, but that's (a) less obviously temporary and (b) might cause other problems.

@zorkian
Copy link
Member

zorkian commented Apr 15, 2017

Makes sense. Thanks for thinking about it!

@zorkian zorkian merged commit f4cd51e into dreamwidth:develop Apr 15, 2017
@kareila kareila deleted the 2095-LJRossia branch April 15, 2017 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants