mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2025-01-03 05:45:17 +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.
|
# because I do not care about Elixir.
|
||||||
actor_info = URI.parse(actor)
|
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)}")
|
Logger.warn("sup /b/ #{inspect(message)}")
|
||||||
# There's probably a better way to do this in Elixir, but...
|
# There's probably a better way to do this in Elixir, but...
|
||||||
# "When in doubt, use brute force." -- Ken Thompson
|
# "When in doubt, use brute force." -- Ken Thompson
|
||||||
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashB do
|
|||||||
|
|
||||||
object =
|
object =
|
||||||
object
|
object
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/b")
|
|> Map.put("actor", "https://bae.st/users/b")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(oto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(occ, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
message =
|
message =
|
||||||
message
|
message
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/b")
|
|> Map.put("actor", "https://bae.st/users/b")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(mto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(mcc, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashG do
|
|||||||
# because I do not care about Elixir.
|
# because I do not care about Elixir.
|
||||||
actor_info = URI.parse(actor)
|
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)}")
|
Logger.warn("sup /g/ #{inspect(message)}")
|
||||||
# There's probably a better way to do this in Elixir, but...
|
# There's probably a better way to do this in Elixir, but...
|
||||||
# "When in doubt, use brute force." -- Ken Thompson
|
# "When in doubt, use brute force." -- Ken Thompson
|
||||||
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashG do
|
|||||||
|
|
||||||
object =
|
object =
|
||||||
object
|
object
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/g")
|
|> Map.put("actor", "https://bae.st/users/g")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(oto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(occ, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
message =
|
message =
|
||||||
message
|
message
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/g")
|
|> Map.put("actor", "https://bae.st/users/g")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(mto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(mcc, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashMLP do
|
|||||||
# because I do not care about Elixir.
|
# because I do not care about Elixir.
|
||||||
actor_info = URI.parse(actor)
|
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)}")
|
Logger.warn("sup /mlp/ #{inspect(message)}")
|
||||||
# There's probably a better way to do this in Elixir, but...
|
# There's probably a better way to do this in Elixir, but...
|
||||||
# "When in doubt, use brute force." -- Ken Thompson
|
# "When in doubt, use brute force." -- Ken Thompson
|
||||||
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashMLP do
|
|||||||
|
|
||||||
object =
|
object =
|
||||||
object
|
object
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/mlp")
|
|> Map.put("actor", "https://bae.st/users/mlp")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(oto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(occ, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
message =
|
message =
|
||||||
message
|
message
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/mlp")
|
|> Map.put("actor", "https://bae.st/users/mlp")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(mto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(mcc, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashPOL do
|
|||||||
# because I do not care about Elixir.
|
# because I do not care about Elixir.
|
||||||
actor_info = URI.parse(actor)
|
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)}")
|
Logger.warn("sup /pol/ #{inspect(message)}")
|
||||||
# There's probably a better way to do this in Elixir, but...
|
# There's probably a better way to do this in Elixir, but...
|
||||||
# "When in doubt, use brute force." -- Ken Thompson
|
# "When in doubt, use brute force." -- Ken Thompson
|
||||||
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashPOL do
|
|||||||
|
|
||||||
object =
|
object =
|
||||||
object
|
object
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/pol")
|
|> Map.put("actor", "https://bae.st/users/pol")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(oto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(occ, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
message =
|
message =
|
||||||
message
|
message
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/pol")
|
|> Map.put("actor", "https://bae.st/users/pol")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(mto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(mcc, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashX do
|
|||||||
# because I do not care about Elixir.
|
# because I do not care about Elixir.
|
||||||
actor_info = URI.parse(actor)
|
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)}")
|
Logger.warn("sup /x/ #{inspect(message)}")
|
||||||
# There's probably a better way to do this in Elixir, but...
|
# There's probably a better way to do this in Elixir, but...
|
||||||
# "When in doubt, use brute force." -- Ken Thompson
|
# "When in doubt, use brute force." -- Ken Thompson
|
||||||
@ -37,36 +37,36 @@ defmodule Pleroma.Web.ActivityPub.MRF.SupSlashX do
|
|||||||
|
|
||||||
object =
|
object =
|
||||||
object
|
object
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/x")
|
|> Map.put("actor", "https://bae.st/users/x")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(oto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(occ, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
message =
|
message =
|
||||||
message
|
message
|
||||||
|> Map.put("actor", "https://neckbeard.xyz/users/x")
|
|> Map.put("actor", "https://bae.st/users/x")
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"to",
|
"to",
|
||||||
Enum.map(mto, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|> Map.put(
|
|> Map.put(
|
||||||
"cc",
|
"cc",
|
||||||
Enum.map(mcc, fn
|
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
|
i -> i
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user