Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

FòrumCAT

  1. Home
  2. Uncategorized
  3. Beat way to migrate a community post history?

Beat way to migrate a community post history?

Scheduled Pinned Locked Moved Uncategorized
fedigrow
2 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J This user is from outside of this forum
    J This user is from outside of this forum
    jet@hackertalks.com
    wrote last edited by
    #1

    I have two lemm.ee communities and I very much want to keep the post history in one community for discover ability and archival purposes.

    What tools and methods are available to transfer posts from one instance to another?

    nutomic@lemmy.mlN 1 Reply Last reply
    0
    • J jet@hackertalks.com

      I have two lemm.ee communities and I very much want to keep the post history in one community for discover ability and archival purposes.

      What tools and methods are available to transfer posts from one instance to another?

      nutomic@lemmy.mlN This user is from outside of this forum
      nutomic@lemmy.mlN This user is from outside of this forum
      nutomic@lemmy.ml
      wrote last edited by nutomic@lemmy.ml
      #2

      You can write a script for this:

      # loop through all post
      GET https://lemm.ee/api/v3/post/list?limit=50&sort=New&community_name=fedigrow&page=*page*
      # take `post.ap_id` for each item
      # then fetch it over activitypub on the other instance
      GET https://lemmy.ml/api/v3/resolve_object?q=*urlencode post.ap_id*
      # same thing for comments
      GET https://lemm.ee/api/v3/comment/list?limit=50&sort=New&community_name=fedigrow&page=*page*
      # again fetch
      GET https://lemmy.ml/api/v3/resolve_object?q=*urlencode comment.ap_id*
      
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups