mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 08:16:16 +00:00
fixed notifications API completely breaking if there's a like for
missing (deleted) post.
This commit is contained in:
parent
5fbb14f5ec
commit
9b046d2a84
|
@ -188,7 +188,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
|
|||
|
||||
text = "#{user.nickname} favorited a status."
|
||||
|
||||
%{
|
||||
if liked_activity, do: %{
|
||||
"id" => activity.id,
|
||||
"user" => UserView.render("show.json", %{user: user, for: opts[:for]}),
|
||||
"statusnet_html" => text,
|
||||
|
@ -200,7 +200,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
|
|||
"in_reply_to_status_id" => liked_activity.id,
|
||||
"external_url" => activity.data["id"],
|
||||
"activity_type" => "like"
|
||||
}
|
||||
}, else: %{}
|
||||
end
|
||||
|
||||
def render(
|
||||
|
|
Loading…
Reference in a new issue