known icon indicating copy to clipboard operation
known copied to clipboard

Globally make posts private

Open batgranny opened this issue 7 years ago • 6 comments

Hi folks,

Sorry this isn't a issue as such but I've just imported 1700 posts from Wordpress and I'd like to make all my posts private, is there a way of doing this? I tried doing some find and replace sql statements on the database but if I replace PUBLIC in the entities table posts are marked in the GUI as private but are still viewable. A similar find and replace in the metadata table locks me out of the site.

version = "0.9.9-a" build = 2018091301

batgranny avatar Sep 25 '18 16:09 batgranny

It seems that the variables that count are those in the JSON within entities.contents.

You seem to need to change access to the UUID for your profile…

cdn avatar Sep 25 '18 16:09 cdn

Something like update entities set contents = replace(contents, 'access":"PUBLIC', 'access":"https:\/\/domain.tld\/view\/hexadecimal-string' where entity_subtype not like 'Idno\Entities\User';

cdn avatar Sep 25 '18 16:09 cdn

It's unfortunately more subtle than that. I'll try and write a script today that will do what you need - I think it's something that a lot of people would like!

benwerd avatar Sep 25 '18 16:09 benwerd

Thanks folks!

batgranny avatar Sep 25 '18 17:09 batgranny

If someone could give me a hint on what to update I could probably work this one out for myself. Any tips?

batgranny avatar Oct 09 '18 13:10 batgranny

That script could be expanded into a nice privacy plug-in too. You initially post publicly , but after a set amount of time the posts become Private or Member Only. Similar to using a service with twitter that automatically prunes your feed but now you get to keep your data.

markwaters avatar Oct 10 '18 05:10 markwaters