Giter VIP home page Giter VIP logo

Comments (3)

Nutomic avatar Nutomic commented on June 26, 2024

The import doesnt remove any existing saved posts, it only adds new ones. Same for followed communities just above. Did you test this properly?

from lemmy.

8ullyMaguire avatar 8ullyMaguire commented on June 26, 2024

I guess I didn't, my bad.

from lemmy.

Die4Ever avatar Die4Ever commented on June 26, 2024

seems like you can't import just a list of communities though

I was looking at this post https://feddit.uk/post/11434169

decided to build a little Javascript:

var links = document.querySelectorAll('#postContent a');
var coms = [];
links.forEach((i) => {
	var m = i.text.match(/!(.+)@(.+)/);
	if(m) {
		var c = 'https://' + m[2] + '/c/' + m[1];
		if(!coms.includes(c)) {
			coms.push(c);
		}
	}
});

var json = JSON.stringify( { "followed_communities": coms }, null, 2 );
console.log(json);

got this JSON:

{
  "followed_communities": [
    "https://lemmy.world/c/star_wars",
    "https://lemmy.world/c/starwars",
    "https://lemmy.ml/c/starwars",
    "https://lemmygrad.ml/c/starwars",
    "https://kbin.social/c/Starwars",
    "https://lemmy.dbzer0.com/c/starwars",
    "https://latte.isnot.coffee/c/starwars",
    "https://lemmy.world/c/starwarstelevision",
    "https://lemmy.world/c/starwarsfigures",
    "https://lemmy.world/c/starwarscollecting",
    "https://lemm.ee/c/legostarwars",
    "https://lemmy.ml/c/starwarseu",
    "https://sh.itjust.works/c/thehighrepublic",
    "https://lemmy.world/c/mawinstallation",
    "https://chirp.social/c/starwarscantina",
    "https://lemmy.world/c/starwarsmemes",
    "https://lemmy.ml/c/starwarsmemes",
    "https://lemmy.ml/c/otmemes",
    "https://lemmy.ml/c/prequelmemes",
    "https://lemmy.world/c/starwarsdadjokes",
    "https://lemmy.world/c/starwarsspeculation",
    "https://lemmy.world/c/themandalorian",
    "https://lemmy.world/c/themandaloriantv",
    "https://lemmy.world/c/starwarswhatif",
    "https://lemmy.world/c/swgalaxyofheroes",
    "https://lemmy.world/c/swgoh",
    "https://lemmy.world/c/swlegion",
    "https://lemmy.world/c/swrpg",
    "https://lemmy.world/c/swtor",
    "https://lemmy.world/c/starwarsarmada",
    "https://lemmy.ml/c/sw_unlimited",
    "https://lemmy.world/c/starwarsempireatwar",
    "https://lemmynsfw.com/c/starwarsnsfw"
  ]
}

and I got this error when trying to import:

{"error":"unknown","message":"There are no changes to save. This query cannot be built"}

from lemmy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.