Merge branch 'mastodon-migration-compat' into 'develop'
Add compatibility routes for converted mastodon instances Closes #1797 See merge request pleroma/pleroma!2572
This commit is contained in:
commit
7bc2ec0aa2
7 changed files with 125 additions and 11 deletions
|
|
@ -470,6 +470,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
|||
|> Enum.map(& &1.ap_id)
|
||||
|
||||
recipients ++ subscriber_ids
|
||||
else
|
||||
_e -> recipients
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -481,6 +483,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
|||
|> User.get_followers()
|
||||
|> Enum.map(& &1.ap_id)
|
||||
|> Enum.concat(recipients)
|
||||
else
|
||||
_e -> recipients
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue