projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
AP refactoring.
[akkoma]
/
lib
/
pleroma
/
web
/
twitter_api
/
representers
/
object_representer.ex
diff --git
a/lib/pleroma/web/twitter_api/representers/object_representer.ex
b/lib/pleroma/web/twitter_api/representers/object_representer.ex
index 57ab24caa4f2632b472602063402d17182af7b7c..c39b607605421449f49d4015be75920e49bcd7c9 100644
(file)
--- a/
lib/pleroma/web/twitter_api/representers/object_representer.ex
+++ b/
lib/pleroma/web/twitter_api/representers/object_representer.ex
@@
-8,8
+8,13
@@
defmodule Pleroma.Web.TwitterAPI.Representers.ObjectRepresenter do
%{
url: url["href"],
mimetype: url["mediaType"],
- id:
object.id
,
+ id:
data["uuid"]
,
oembed: false
}
end
+
+ # If we only get the naked data, wrap in an object
+ def to_map(%{} = data, opts) do
+ to_map(%Object{data: data}, opts)
+ end
end