Make attachment links configurable
Thanks @href!
This commit is contained in:
parent
ce2efd1ee2
commit
8c368d42a2
3 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ defmodule Pleroma.Web.CommonAPI do
|
|||
attachments,
|
||||
tags,
|
||||
get_content_type(data["content_type"]),
|
||||
Enum.member?([true, "true"], data["no_attachment_links"])
|
||||
Enum.member?([true, "true"], Map.get(data, "no_attachment_links", Pleroma.Config.get([:instance, :no_attachment_links], true)))
|
||||
),
|
||||
context <- make_context(inReplyTo),
|
||||
cw <- data["spoiler_text"],
|
||||
|
|
|
|||
|
|
@ -341,7 +341,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||
params =
|
||||
params
|
||||
|> Map.put("in_reply_to_status_id", params["in_reply_to_id"])
|
||||
|> Map.put("no_attachment_links", true)
|
||||
|
||||
idempotency_key =
|
||||
case get_req_header(conn, "idempotency-key") do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue