end
to = [
- "https://www.w3.org/ns/activitystreams#Public"
+ "https://www.w3.org/ns/activitystreams#Public",
+ User.ap_followers(actor)
]
mentions = :xmerl_xpath.string('//link[@rel="mentioned" and @ostatus:object-type="http://activitystrea.ms/schema/1.0/person"]', entry)
use Pleroma.DataCase
alias Pleroma.Web.OStatus
alias Pleroma.Web.XML
- alias Pleroma.{Object, Repo}
+ alias Pleroma.{Object, Repo, User}
import Pleroma.Factory
test "don't insert create notes twice" do
assert activity.data["object"]["type"] == "Note"
assert activity.data["object"]["actor"] == "https://social.heldscal.la/user/23211"
assert activity.data["object"]["content"] == "Will it blend?"
+ user = User.get_cached_by_ap_id(activity.data["actor"])
+ assert User.ap_followers(user) in activity.data["to"]
end
test "handle incoming notes with attachments - GS, subscription" do