From 3eb17cd2277f94af7cc258f21a6cf1e6f8771be3 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 28 Dec 2008 19:20:20 -0500 Subject: [PATCH] one method for getting a globally unique id for a post --- hippo/SPEC.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hippo/SPEC.txt b/hippo/SPEC.txt index 776b93025..75daf398c 100644 --- a/hippo/SPEC.txt +++ b/hippo/SPEC.txt @@ -9,3 +9,14 @@ Hippo will be a new Horde 4, PHP 5 application that aggregates content. It will * This application should eventually be able to replace Klutz * Additional possible content types include podcasts, content from other Horde applications (iCalendar data from Kronolith), "friend information (http://hasin.wordpress.com/2008/05/31/building-friendfeed-using-php-part-1/, http://hasin.wordpress.com/2008/06/03/building-services-like-friendfeed-using-php-part2/), etc. * http://www.dapper.net/ + +GUID detection: + if (isset($item['guid'])) { + $guid = $item['guid']; + } else if (isset($item['id'])) { + $guid = $item['id']; + $item['guid'] = $item['id']; + } else { + $guid = $item['link']; + $item['guid'] = $item['link']; + } -- 2.11.0