From 5dde6e4a003dfd4fbd9b6e8102b74a376b0d4c36 Mon Sep 17 00:00:00 2001
From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
Date: Wed, 22 Aug 2018 01:46:26 +0200
Subject: [PATCH] [Pleroma.Web.MastodonAPI.StatusView] Fix rendering peertube
 videos

---
 lib/pleroma/web/mastodon_api/views/status_view.ex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 3eca43a92..6962aa54f 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -216,7 +216,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
 
     content =
       if !!name and name != "" do
-        "<p><a href=\"#{object["url"]}\">#{name}</a></p>#{object["content"]}"
+        "<p><a href=\"#{object["id"]}\">#{name}</a></p>#{object["content"]}"
       else
         object["content"]
       end
-- 
2.49.0