]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile.php
Moving mod/babel to src/Module/babel
[friendica.git] / src / Module / Profile.php
index 62598400d4a281de7768cda81a054a90e7300620..55150a9649d8d1d741008945d041c95e419e5bfe 100644 (file)
@@ -63,14 +63,7 @@ class Profile extends BaseModule
                                System::jsonExit($data, 'application/activity+json');\r
                        } elseif (DBA::exists('userd', ['username' => self::$which])) {\r
                                // Known deleted user\r
-                               $data = [\r
-                                       '@context' => ActivityPub::CONTEXT,\r
-                                       'id' => self::getApp()->getBaseUrl() . '/profile/' . self::$which,\r
-                                       'type' => 'Tombstone',\r
-                                       'published' => DateTimeFormat::utcNow(DateTimeFormat::ATOM),\r
-                                       'updated' => DateTimeFormat::utcNow(DateTimeFormat::ATOM),\r
-                                       'deleted' => DateTimeFormat::utcNow(DateTimeFormat::ATOM),\r
-                               ];\r
+                               $data = ActivityPub\Transmitter::getDeletedUser(self::$which);\r
 \r
                                System::jsonError(410, $data);\r
                        } else {\r