ObjectAgePolicy: Fix pattern matching on published

Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3500
This commit is contained in:
Haelwenn (lanodan) Monnier 2021-08-10 07:41:06 +02:00
commit 8baaa36a16
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
3 changed files with 7 additions and 1 deletions

View file

@ -22,6 +22,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.ObjectAgePolicyTest do
defp get_old_message do
File.read!("test/fixtures/mastodon-post-activity.json")
|> Jason.decode!()
|> Map.drop(["published"])
end
defp get_new_message do