danito / KnownMastodon

Syndicate to Mastodon
Apache License 2.0
26 stars 5 forks source link

Document reset #12

Closed zoglesby closed 4 years ago

zoglesby commented 6 years ago

Can you please document how to reset this plugin. I had an issues and the initial setup failed and I can not for the life of me figure out how to clear the settings and try again. I have poked around in the database tried removing things from the config table, but nothing seems to get it back to a usable state. Anything you can provide would be helpful.

danito commented 6 years ago

Hi,

to reset everything, you can delete the "Mastodon" section in your user profile from the user entity

SELECT *
FROM `entities`
WHERE UUID = 'https://your.known.server/profile/yourusername'

In the contents you'll find something like

{ ...
    "mastodon":{"username@mastodon.server":   
        {"server":"mastodon.server","login":"your@email.address","username":"username","bearer":""}
}

(Be careful, this is your user profile, messing this up breaks things). And also revoke your Known in the authorized applications In my case https://mastodon.social/oauth/authorized_applications

rmdes commented 5 years ago

Hmm so if I want to change my instance I have no other but this route to reset the plugin ?

jaranta commented 5 years ago

I tried this route for resetting the plugin, but this doesn't seem to work. The mysql command listed above returns an empty set. The entities.uuid seems to contain data in the form of https://your.known.server/view/xxxxxxxxx, with nothing corresponding to what you describe above.

cdn commented 4 years ago

Alternatively a branch on my fork with per account, and server deletion capability

cdn commented 4 years ago

That branch has been merged in, so this should be closable @danito?

danito commented 4 years ago

fixed by #26