mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2025-01-03 05:25:07 +01:00
update host and uploads location
This commit is contained in:
parent
68278ab5bd
commit
5729034482
@ -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)
|
||||
)
|
||||
|
@ -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)
|
||||
)
|
||||
|
@ -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)
|
||||
)
|
||||
|
@ -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)
|
||||
)
|
||||
|
@ -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)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user