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. Lemmy Support
  3. Bug - If the only subscriber on a instance is banned, and unbanned, the unban doesn't federate to the instance.

Bug - If the only subscriber on a instance is banned, and unbanned, the unban doesn't federate to the instance.

Scheduled Pinned Locked Moved Lemmy Support
lemmysupport
4 Posts 3 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 on last edited by
    #1

    hackertalks.com 0.19.11 - lone subscriber instance

    lemmyworld.com 0.19.10 - ban and unban instance.

    Single subscriber for a community gets banned, and a hour later gets unbanned. Since the subscriber is banned, the subscription appears to terminate. So there is no federation for the unban a hour later for that community.

    note lemmy-federate doesn't subscribe if there is a local subscriber either.

    Example community:

    • https://hackertalks.com/modlog/1540?page=1&actionType=All&userId=7663
    • https://lemmy.world/modlog/622?page=1&actionType=All&userId=1161502
    J 1 Reply Last reply
    0
    • J jet@hackertalks.com

      hackertalks.com 0.19.11 - lone subscriber instance

      lemmyworld.com 0.19.10 - ban and unban instance.

      Single subscriber for a community gets banned, and a hour later gets unbanned. Since the subscriber is banned, the subscription appears to terminate. So there is no federation for the unban a hour later for that community.

      note lemmy-federate doesn't subscribe if there is a local subscriber either.

      Example community:

      • https://hackertalks.com/modlog/1540?page=1&actionType=All&userId=7663
      • https://lemmy.world/modlog/622?page=1&actionType=All&userId=1161502
      J This user is from outside of this forum
      J This user is from outside of this forum
      jet@hackertalks.com
      wrote on last edited by
      #2

      Any way to force the federation of the unban later to get the instance to sync the current ban status?

      N 1 Reply Last reply
      0
      • J jet@hackertalks.com

        Any way to force the federation of the unban later to get the instance to sync the current ban status?

        N This user is from outside of this forum
        N This user is from outside of this forum
        nothing4you@programming.dev
        wrote on last edited by
        #3

        the unban itself federates, but on community bans the user gets unsubscribed from the communities, which deletes the associated subscription in the db.

        skimming over the code it seems to be only happening in case of community bans (including the ones derived from instance bans on 0.19), but it should also remove your local subscription on your own instance. as long as that federates it should still be picked up by lemmy-federate eventually, as your local instance should also have removed that when receiving the community ban.

        it might be debatable whether subscriptions should get removed with community bans for public communities, but overall the code logic seems to be there. i haven't tested this end to end yet.

        nutomic@lemmy.mlN 1 Reply Last reply
        0
        • N nothing4you@programming.dev

          the unban itself federates, but on community bans the user gets unsubscribed from the communities, which deletes the associated subscription in the db.

          skimming over the code it seems to be only happening in case of community bans (including the ones derived from instance bans on 0.19), but it should also remove your local subscription on your own instance. as long as that federates it should still be picked up by lemmy-federate eventually, as your local instance should also have removed that when receiving the community ban.

          it might be debatable whether subscriptions should get removed with community bans for public communities, but overall the code logic seems to be there. i haven't tested this end to end yet.

          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 on last edited by
          #4

          This was fixed in a pr some time ago, though I don't have the link now.

          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