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

Blocked domains flood gserver entries #12700

Merged
merged 3 commits into from
Jan 21, 2023

Commits on Jan 20, 2023

  1. Continued:

    - some trolls managed to flood gserver with useless URLs. They can be blocked
      by domain blocking them, but still it floods gserver table with dead entries
    - this hack tries to change that so they won't enter gserver at all. Let's hope
      these trolls as `activitypub-trolls.cf` learn a lesson (and get adults soon)
    
    Signed-off-by: Roland Häder <roland@mxchange.org>
    Quix0r committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    a0704db View commit details
    Browse the repository at this point in the history
  2. Continued:

    - just for consistency ...
    Quix0r committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    ba08692 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2023

  1. Continued:

    - moved if() block to suggested position by MrPetovan, for me I want to have all
      conditions checked at the start of the method, e.g. no unwanted null
      references or (in this case) if the URL is blacklisted
    - normalized URLs are without SSL, means http://host/path/file.ext so they exist
      only once for contacts and servers (aka. instances)
    - documented returned type `void`
    Quix0r committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    27969e8 View commit details
    Browse the repository at this point in the history