From 846a9813b23911ae2a87d87fb6fd9f188ed84dc0 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 1 Oct 2012 18:02:11 -0700 Subject: here's where the heavy lifting begins - everything is likely to be broken for quite some time as we add location and db independence to items and conversations and work through the rest of the permissions and how to federate the buggers. --- include/text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 61c7e6389..d0ad414fa 100644 --- a/include/text.php +++ b/include/text.php @@ -378,7 +378,7 @@ function photo_new_resource() { do { $found = false; $resource = hash('md5',uniqid(mt_rand(),true)); - $r = q("SELECT `id` FROM `photo` WHERE `resource-id` = '%s' LIMIT 1", + $r = q("SELECT `id` FROM `photo` WHERE `resource_id` = '%s' LIMIT 1", dbesc($resource) ); if(count($r)) @@ -1325,7 +1325,7 @@ function reltoabs($text, $base) function item_post_type($item) { if(intval($item['event-id'])) return t('event'); - if(strlen($item['resource-id'])) + if(strlen($item['resource_id'])) return t('photo'); if(strlen($item['verb']) && $item['verb'] !== ACTIVITY_POST) return t('activity'); -- cgit v1.2.3