Correct og:description tag in static-fe
authorSol Fisher Romanoff <sol@solfisher.com>
Wed, 14 Dec 2022 18:35:50 +0000 (20:35 +0200)
committerSol Fisher Romanoff <sol@solfisher.com>
Fri, 30 Dec 2022 05:14:54 +0000 (07:14 +0200)
lib/pleroma/web/static_fe/static_fe_controller.ex

index 8e454f7a07754493e02a7e9e10476fb7b0b7f1fa..56ee4e41e9f8c6771c1121cdd41d7cf890fad5f7 100644 (file)
@@ -25,7 +25,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
          true <- Visibility.is_public?(activity.object),
          {_, true} <- {:visible?, Visibility.visible_for_user?(activity, _reading_user = nil)},
          %User{} = user <- User.get_by_ap_id(activity.object.data["actor"]) do
-      meta = Metadata.build_tags(%{activity_id: notice_id, object: activity.object, user: user})
+      meta = Metadata.build_tags(%{url: activity.data["id"], object: activity.object, user: user})
 
       timeline =
         activity.object.data["context"]