diff options
author | lain <lain@soykaf.club> | 2020-03-19 18:00:55 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-03-19 18:00:55 +0100 |
commit | 3c2c32b460c2d942d085725d14e77a96c4a01e4c (patch) | |
tree | 1542ba8f33738650c561a1f944ae7ce9e16dd116 /lib/pleroma/object | |
parent | ac5c2b66b9f106bad117708cf74e3007c434d09e (diff) | |
parent | d4bafabfd14887e61eb5bc1d877035dcfebbd33f (diff) | |
download | pleroma-3c2c32b460c2d942d085725d14e77a96c4a01e4c.tar.gz |
Merge branch 'remake-remodel' into develop
Diffstat (limited to 'lib/pleroma/object')
-rw-r--r-- | lib/pleroma/object/containment.ex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/pleroma/object/containment.ex b/lib/pleroma/object/containment.ex index 9ae6a5600..99608b8a5 100644 --- a/lib/pleroma/object/containment.ex +++ b/lib/pleroma/object/containment.ex @@ -32,6 +32,18 @@ defmodule Pleroma.Object.Containment do get_actor(%{"actor" => actor}) end + def get_object(%{"object" => id}) when is_binary(id) do + id + end + + def get_object(%{"object" => %{"id" => id}}) when is_binary(id) do + id + end + + def get_object(_) do + nil + end + # TODO: We explicitly allow 'tag' URIs through, due to references to legacy OStatus # objects being present in the test suite environment. Once these objects are # removed, please also remove this. |