Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement server-wide open group user bans and unbans. #2653

Open
wants to merge 4 commits into
base: clearnet
Choose a base branch
from

Commits on Jan 31, 2023

  1. Implement server-wide open group user bans and unbans.

    This adds to Session the ability to ban a user not just from a single
    group, but from an entire SOGS.
    
    To successfully ban (or unban) a user across a whole server, the
    executor must be a global moderator of the SOGS instance.
    
    When banning a user, the global moderator may opt to also remove all of
    the user's messages from the server. This requires PySOGS > 0.3.7 to
    allow the simultaneous deletion of messages from multiple groups. See
    oxen-io/session-pysogs@2c8e4f1.
    
    This has been tested with Session 1.10.4 in combination with
    `open.getsession.org` and `sog.caliban.org`, both of which have been
    updated to support server-wide banning.
    ianmacd committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    d85a0bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f8327c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    93c6b06 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. When purging while banning a user, also remove their emoji reactions.

    This expands on oxen-io#2653 and ensures that when a user is banned from a room
    or an entire server, and **Delete All** has been selected, not just his
    messages but also his emoji reactions will be removed.
    
    This pull-request depends on oxen-io/session-pysogs#169.
    
    Verified working on `sog.caliban.org`.
    ianmacd committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    8d60517 View commit details
    Browse the repository at this point in the history