Web.CommonAPI: Add local-only posts
A post is local-only when it contains a ️ (👁️) at the end. This is from glitch-soc
This commit is contained in:
parent
3e54b79a06
commit
1cd33aa8cd
|
@ -124,14 +124,16 @@ defmodule Pleroma.Web.CommonAPI do
|
|||
|> Enum.reduce(%{}, fn {name, file}, acc ->
|
||||
Map.put(acc, name, "#{Pleroma.Web.Endpoint.static_url()}#{file}")
|
||||
end)
|
||||
) do
|
||||
),
|
||||
local_only <- !!(String.last(status) == "👁️") do
|
||||
res =
|
||||
ActivityPub.create(%{
|
||||
to: to,
|
||||
actor: user,
|
||||
context: context,
|
||||
object: object,
|
||||
additional: %{"cc" => cc}
|
||||
additional: %{"cc" => cc},
|
||||
local: local_only
|
||||
})
|
||||
|
||||
res
|
||||
|
|
Loading…
Reference in New Issue