Merge branch 'fix/hashtags-streaming' into 'develop'
Fix hashtags WebSocket streaming Closes #1593 See merge request pleroma/pleroma!2294
This commit is contained in:
commit
994ac4357c
2 changed files with 5 additions and 5 deletions
|
@ -39,7 +39,7 @@ defmodule Pleroma.Activity.Ir.Topics do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp item_creation_tags(tags, %{data: %{"type" => "Create"}} = object, activity) do
|
defp item_creation_tags(tags, object, %{data: %{"type" => "Create"}} = activity) do
|
||||||
tags ++ hashtags_to_topics(object) ++ attachment_topics(object, activity)
|
tags ++ hashtags_to_topics(object) ++ attachment_topics(object, activity)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -59,8 +59,8 @@ defmodule Pleroma.Activity.Ir.TopicsTest do
|
||||||
describe "public visibility create events" do
|
describe "public visibility create events" do
|
||||||
setup do
|
setup do
|
||||||
activity = %Activity{
|
activity = %Activity{
|
||||||
object: %Object{data: %{"type" => "Create", "attachment" => []}},
|
object: %Object{data: %{"attachment" => []}},
|
||||||
data: %{"to" => [Pleroma.Constants.as_public()]}
|
data: %{"type" => "Create", "to" => [Pleroma.Constants.as_public()]}
|
||||||
}
|
}
|
||||||
|
|
||||||
{:ok, activity: activity}
|
{:ok, activity: activity}
|
||||||
|
@ -98,8 +98,8 @@ defmodule Pleroma.Activity.Ir.TopicsTest do
|
||||||
describe "public visibility create events with attachments" do
|
describe "public visibility create events with attachments" do
|
||||||
setup do
|
setup do
|
||||||
activity = %Activity{
|
activity = %Activity{
|
||||||
object: %Object{data: %{"type" => "Create", "attachment" => ["foo"]}},
|
object: %Object{data: %{"attachment" => ["foo"]}},
|
||||||
data: %{"to" => [Pleroma.Constants.as_public()]}
|
data: %{"type" => "Create", "to" => [Pleroma.Constants.as_public()]}
|
||||||
}
|
}
|
||||||
|
|
||||||
{:ok, activity: activity}
|
{:ok, activity: activity}
|
||||||
|
|
Loading…
Reference in a new issue