diff options
author | friendica <info@friendica.com> | 2012-10-03 22:28:19 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-03 22:28:19 -0700 |
commit | e124c9fa5ca046d48eb927fe80706cf6d42f6bff (patch) | |
tree | 8df07cdd9a21c977bc961328cdc6a2f161a82988 /include/text.php | |
parent | d0f62d1219d035d92f3adb717d9fdbed03fa6dd5 (diff) | |
download | volse-hubzilla-e124c9fa5ca046d48eb927fe80706cf6d42f6bff.tar.gz volse-hubzilla-e124c9fa5ca046d48eb927fe80706cf6d42f6bff.tar.bz2 volse-hubzilla-e124c9fa5ca046d48eb927fe80706cf6d42f6bff.zip |
Can't see any posts currently - after the big shakeup, but we can now post top level activities and store them.
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/text.php b/include/text.php index d0ad414fa..a68782f2a 100644 --- a/include/text.php +++ b/include/text.php @@ -352,14 +352,14 @@ function perms2str($p) { // generate a guaranteed unique (for this domain) item ID for ATOM // safe from birthday paradox -if(! function_exists('item_new_uri')) { -function item_new_uri($hostname,$uid) { +if(! function_exists('item_message_id')) { +function item_message_id() { do { $dups = false; $hash = random_string(); - $uri = "urn:X-dfrn:" . $hostname . ':' . $uid . ':' . $hash; + $uri = $hash . '@' . $hostname; $r = q("SELECT `id` FROM `item` WHERE `uri` = '%s' LIMIT 1", dbesc($uri)); |