﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
5355	Graveyard media don't return serializable actors	ayleph		"Related to #5354, entries in {{{core_graveyard}}} don't return a serializable actor. Instead, I get something like below in server logs when trying to pull from the inbox.

{{{
TypeError: <LocalUser #5 verified user ""machalus""> is not JSON serializable
}}}

As a temporary hack, I hardcoded the graveyard actor as shown below. After doing so, pumpa finally was able to pull my inbox and load media and comments.

{{{
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index 0de14b4..8af520d 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -1566,7 +1566,8 @@ class Graveyard(Base):
         return {
             ""id"": self.public_id,
             ""objectType"": self.object_type,
-            ""actor"": self.actor(),
+            ""actor"": ""bob"",
             ""published"": deleted.isoformat(),
             ""updated"": deleted.isoformat(),
             ""deleted"": deleted.isoformat()
}}}"	defect	closed	critical	0.9.0	programming	fixed	api,json,graveyard	tsyesika	
