forked from AkkomaGang/akkoma
Render notification IDs as strings, not numbers
This commit is contained in:
parent
b7923aa304
commit
2b2bd0e047
1 changed files with 4 additions and 4 deletions
|
@ -1033,7 +1033,7 @@ def render_notification(user, %{id: id, activity: activity, inserted_at: created
|
||||||
case activity.data["type"] do
|
case activity.data["type"] do
|
||||||
"Create" ->
|
"Create" ->
|
||||||
%{
|
%{
|
||||||
id: id,
|
id: id |> to_string,
|
||||||
type: "mention",
|
type: "mention",
|
||||||
created_at: created_at,
|
created_at: created_at,
|
||||||
account: AccountView.render("account.json", %{user: actor}),
|
account: AccountView.render("account.json", %{user: actor}),
|
||||||
|
@ -1044,7 +1044,7 @@ def render_notification(user, %{id: id, activity: activity, inserted_at: created
|
||||||
liked_activity = Activity.get_create_activity_by_object_ap_id(activity.data["object"])
|
liked_activity = Activity.get_create_activity_by_object_ap_id(activity.data["object"])
|
||||||
|
|
||||||
%{
|
%{
|
||||||
id: id,
|
id: id |> to_string,
|
||||||
type: "favourite",
|
type: "favourite",
|
||||||
created_at: created_at,
|
created_at: created_at,
|
||||||
account: AccountView.render("account.json", %{user: actor}),
|
account: AccountView.render("account.json", %{user: actor}),
|
||||||
|
@ -1055,7 +1055,7 @@ def render_notification(user, %{id: id, activity: activity, inserted_at: created
|
||||||
announced_activity = Activity.get_create_activity_by_object_ap_id(activity.data["object"])
|
announced_activity = Activity.get_create_activity_by_object_ap_id(activity.data["object"])
|
||||||
|
|
||||||
%{
|
%{
|
||||||
id: id,
|
id: id |> to_string,
|
||||||
type: "reblog",
|
type: "reblog",
|
||||||
created_at: created_at,
|
created_at: created_at,
|
||||||
account: AccountView.render("account.json", %{user: actor}),
|
account: AccountView.render("account.json", %{user: actor}),
|
||||||
|
@ -1064,7 +1064,7 @@ def render_notification(user, %{id: id, activity: activity, inserted_at: created
|
||||||
|
|
||||||
"Follow" ->
|
"Follow" ->
|
||||||
%{
|
%{
|
||||||
id: id,
|
id: id |> to_string,
|
||||||
type: "follow",
|
type: "follow",
|
||||||
created_at: created_at,
|
created_at: created_at,
|
||||||
account: AccountView.render("account.json", %{user: actor})
|
account: AccountView.render("account.json", %{user: actor})
|
||||||
|
|
Loading…
Reference in a new issue