Browse Source

update host and uploads location

migrate-to-akkoma
Your New SJW Waifu 8 months ago
parent
commit
5729034482
  1. 14
      lib/pleroma/web/activity_pub/mrf/sup_slash_b.ex
  2. 14
      lib/pleroma/web/activity_pub/mrf/sup_slash_g.ex
  3. 14
      lib/pleroma/web/activity_pub/mrf/sup_slash_mlp.ex
  4. 14
      lib/pleroma/web/activity_pub/mrf/sup_slash_pol.ex
  5. 14
      lib/pleroma/web/activity_pub/mrf/sup_slash_x.ex
  6. 2
      uploads

14
lib/pleroma/web/activity_pub/mrf/sup_slash_b.ex

@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashB do
# because I do not care about Elixir.
actor_info = URI.parse(actor)
if(actor_info.host == "neckbeard.xyz") do
if(actor_info.host == "bae.st") do
Logger.warn("sup /b/ #{inspect(message)}")
# There's probably a better way to do this in Elixir, but...
# "When in doubt, use brute force." -- Ken Thompson
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashB do
object =
object
|> Map.put("actor", "https://neckbeard.xyz/users/b")
|> Map.put("actor", "https://bae.st/users/b")
|> Map.put(
"to",
Enum.map(oto, fn
i when i == afol -> "https://neckbeard.xyz/users/b/followers"
i when i == afol -> "https://bae.st/users/b/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(occ, fn
i when i == afol -> "https://neckbeard.xyz/users/b/followers"
i when i == afol -> "https://bae.st/users/b/followers"
i -> i
end)
)
message =
message
|> Map.put("actor", "https://neckbeard.xyz/users/b")
|> Map.put("actor", "https://bae.st/users/b")
|> Map.put(
"to",
Enum.map(mto, fn
i when i == afol -> "https://neckbeard.xyz/users/b/followers"
i when i == afol -> "https://bae.st/users/b/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(mcc, fn
i when i == afol -> "https://neckbeard.xyz/users/b/followers"
i when i == afol -> "https://bae.st/users/b/followers"
i -> i
end)
)

14
lib/pleroma/web/activity_pub/mrf/sup_slash_g.ex

@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashG do
# because I do not care about Elixir.
actor_info = URI.parse(actor)
if(actor_info.host == "neckbeard.xyz") do
if(actor_info.host == "bae.st") do
Logger.warn("sup /g/ #{inspect(message)}")
# There's probably a better way to do this in Elixir, but...
# "When in doubt, use brute force." -- Ken Thompson
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashG do
object =
object
|> Map.put("actor", "https://neckbeard.xyz/users/g")
|> Map.put("actor", "https://bae.st/users/g")
|> Map.put(
"to",
Enum.map(oto, fn
i when i == afol -> "https://neckbeard.xyz/users/g/followers"
i when i == afol -> "https://bae.st/users/g/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(occ, fn
i when i == afol -> "https://neckbeard.xyz/users/g/followers"
i when i == afol -> "https://bae.st/users/g/followers"
i -> i
end)
)
message =
message
|> Map.put("actor", "https://neckbeard.xyz/users/g")
|> Map.put("actor", "https://bae.st/users/g")
|> Map.put(
"to",
Enum.map(mto, fn
i when i == afol -> "https://neckbeard.xyz/users/g/followers"
i when i == afol -> "https://bae.st/users/g/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(mcc, fn
i when i == afol -> "https://neckbeard.xyz/users/g/followers"
i when i == afol -> "https://bae.st/users/g/followers"
i -> i
end)
)

14
lib/pleroma/web/activity_pub/mrf/sup_slash_mlp.ex

@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashMLP do
# because I do not care about Elixir.
actor_info = URI.parse(actor)
if(actor_info.host == "neckbeard.xyz") do
if(actor_info.host == "bae.st") do
Logger.warn("sup /mlp/ #{inspect(message)}")
# There's probably a better way to do this in Elixir, but...
# "When in doubt, use brute force." -- Ken Thompson
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashMLP do
object =
object
|> Map.put("actor", "https://neckbeard.xyz/users/mlp")
|> Map.put("actor", "https://bae.st/users/mlp")
|> Map.put(
"to",
Enum.map(oto, fn
i when i == afol -> "https://neckbeard.xyz/users/mlp/followers"
i when i == afol -> "https://bae.st/users/mlp/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(occ, fn
i when i == afol -> "https://neckbeard.xyz/users/mlp/followers"
i when i == afol -> "https://bae.st/users/mlp/followers"
i -> i
end)
)
message =
message
|> Map.put("actor", "https://neckbeard.xyz/users/mlp")
|> Map.put("actor", "https://bae.st/users/mlp")
|> Map.put(
"to",
Enum.map(mto, fn
i when i == afol -> "https://neckbeard.xyz/users/mlp/followers"
i when i == afol -> "https://bae.st/users/mlp/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(mcc, fn
i when i == afol -> "https://neckbeard.xyz/users/mlp/followers"
i when i == afol -> "https://bae.st/users/mlp/followers"
i -> i
end)
)

14
lib/pleroma/web/activity_pub/mrf/sup_slash_pol.ex

@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashPOL do
# because I do not care about Elixir.
actor_info = URI.parse(actor)
if(actor_info.host == "neckbeard.xyz") do
if(actor_info.host == "bae.st") do
Logger.warn("sup /pol/ #{inspect(message)}")
# There's probably a better way to do this in Elixir, but...
# "When in doubt, use brute force." -- Ken Thompson
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashPOL do
object =
object
|> Map.put("actor", "https://neckbeard.xyz/users/pol")
|> Map.put("actor", "https://bae.st/users/pol")
|> Map.put(
"to",
Enum.map(oto, fn
i when i == afol -> "https://neckbeard.xyz/users/pol/followers"
i when i == afol -> "https://bae.st/users/pol/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(occ, fn
i when i == afol -> "https://neckbeard.xyz/users/pol/followers"
i when i == afol -> "https://bae.st/users/pol/followers"
i -> i
end)
)
message =
message
|> Map.put("actor", "https://neckbeard.xyz/users/pol")
|> Map.put("actor", "https://bae.st/users/pol")
|> Map.put(
"to",
Enum.map(mto, fn
i when i == afol -> "https://neckbeard.xyz/users/pol/followers"
i when i == afol -> "https://bae.st/users/pol/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(mcc, fn
i when i == afol -> "https://neckbeard.xyz/users/pol/followers"
i when i == afol -> "https://bae.st/users/pol/followers"
i -> i
end)
)

14
lib/pleroma/web/activity_pub/mrf/sup_slash_x.ex

@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashX do
# because I do not care about Elixir.
actor_info = URI.parse(actor)
if(actor_info.host == "neckbeard.xyz") do
if(actor_info.host == "bae.st") do
Logger.warn("sup /x/ #{inspect(message)}")
# There's probably a better way to do this in Elixir, but...
# "When in doubt, use brute force." -- Ken Thompson
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashX do
object =
object
|> Map.put("actor", "https://neckbeard.xyz/users/x")
|> Map.put("actor", "https://bae.st/users/x")
|> Map.put(
"to",
Enum.map(oto, fn
i when i == afol -> "https://neckbeard.xyz/users/x/followers"
i when i == afol -> "https://bae.st/users/x/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(occ, fn
i when i == afol -> "https://neckbeard.xyz/users/x/followers"
i when i == afol -> "https://bae.st/users/x/followers"
i -> i
end)
)
message =
message
|> Map.put("actor", "https://neckbeard.xyz/users/x")
|> Map.put("actor", "https://bae.st/users/x")
|> Map.put(
"to",
Enum.map(mto, fn
i when i == afol -> "https://neckbeard.xyz/users/x/followers"
i when i == afol -> "https://bae.st/users/x/followers"
i -> i
end)
)
|> Map.put(
"cc",
Enum.map(mcc, fn
i when i == afol -> "https://neckbeard.xyz/users/x/followers"
i when i == afol -> "https://bae.st/users/x/followers"
i -> i
end)
)

2
uploads

@ -1 +1 @@
/mnt/pleroma/pleroma/uploads
/mnt/storage/media/baest/uploads
Loading…
Cancel
Save