GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    glitter (glitter@bbs.kawa-kun.com)'s status on Monday, 24-Mar-2025 03:11:15 JST glitter glitter
    • Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
    hey @tk add moons filter in the server plsssssss i’m tired of nicole
    In conversation about 4 months ago from bbs.kawa-kun.com permalink
    • Doughnut Lollipop 【記録係】:blobfoxgooglymlem: likes this.
    • Embed this notice
      Fish of Rage (sun@shitposter.world)'s status on Monday, 24-Mar-2025 03:14:00 JST Fish of Rage Fish of Rage
      in reply to
      • Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      @glitter @tk
      ```
      defmodule Site.RejectFediverseChick do
      @behaviour Pleroma.Web.ActivityPub.MRF.Policy
      require Logger

      @impl true
      def filter(
      %{
      "to" => mto,
      "cc" => mcc,
      "type" => "Create",
      "object" => %{
      "type" => "Note",
      "to" => oto,
      "cc" => occ,
      "content" => content,
      },
      } = message
      ) do
      mall = ((mto++mcc)++oto)++occ |> Enum.uniq()
      if is_local_single_dm?(mall) && String.contains?(String.downcase(content), "fediverse chick") do
      {:reject, "fediverse chick"}
      else
      {:ok, message}
      end
      end

      def filter(message), do: {:ok, message}

      @impl true
      def describe, do: {:ok, %{}}

      defp is_local_single_dm?(recipients) when is_list(recipients) do
      with 1 <- length(recipients),
      [ "https://shitposter.world/" <> _ | _ ] <- recipients do
      true
      else
      _ -> false
      end
      end


      end
      ```

      adapt to your own server
      In conversation about 4 months ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Shitposter World

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.