Browse Source

fix: stream out Create Activity

Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3499
stable^2
kPherox Haelwenn (lanodan) Monnier 2 years ago
parent
commit
34606d609d
No known key found for this signature in database GPG Key ID: D5B7A8E43C997DEE
2 changed files with 9 additions and 5 deletions
  1. +6
    -1
      CHANGELOG.md
  2. +3
    -4
      lib/pleroma/web/activity_pub/side_effects.ex

+ 6
- 1
CHANGELOG.md View File

@@ -14,7 +14,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Removed

## 2.4.0 - 2021-08-xx
## 2.4.1

### Fixed
- MastodonAPI: Stream out Create activities

## 2.4.0 - 2021-08-08

### Changed



+ 3
- 4
lib/pleroma/web/activity_pub/side_effects.ex View File

@@ -10,7 +10,6 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
collection, and so on.
"""
alias Pleroma.Activity
alias Pleroma.Activity.Ir.Topics
alias Pleroma.Chat
alias Pleroma.Chat.MessageReference
alias Pleroma.FollowingRelationship
@@ -225,6 +224,8 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
meta
|> add_notifications(notifications)

ap_streamer().stream_out(activity)

{:ok, activity, meta}
else
e -> Repo.rollback(e)
@@ -245,9 +246,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
if !User.is_internal_user?(user) do
Notification.create_notifications(object)

object
|> Topics.get_activity_topics()
|> Streamer.stream(object)
ap_streamer().stream_out(object)
end

{:ok, object, meta}


Loading…
Cancel
Save