diff options
author | eal <eal@waifu.club> | 2017-12-07 20:44:09 +0200 |
---|---|---|
committer | eal <eal@waifu.club> | 2017-12-07 20:44:09 +0200 |
commit | 5436dbaeaf0765c5d651cd16b02018edbc6793d4 (patch) | |
tree | dee526bc21bb8d1789246ee3dfd2fa0e63314c03 /lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | |
parent | afd0ea37f3284bdfa6ddce99162601615b7ad845 (diff) | |
download | pleroma-5436dbaeaf0765c5d651cd16b02018edbc6793d4.tar.gz |
MastoAPI: don't add attachment links.
Diffstat (limited to 'lib/pleroma/web/mastodon_api/mastodon_api_controller.ex')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 61bf8b4b8..e50f53ba4 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -212,6 +212,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do def post_status(%{assigns: %{user: user}} = conn, %{"status" => _} = params) do params = params |> Map.put("in_reply_to_status_id", params["in_reply_to_id"]) + |> Map.put("no_attachment_links", true) {:ok, activity} = CommonAPI.post(user, params) render conn, StatusView, "status.json", %{activity: activity, for: user, as: :activity} |