sort out the rest of the nasty stuff in the attachment/file api - time to move on to something else

This commit is contained in:
friendica
2013-02-01 00:49:07 -08:00
parent 5ca88ca10a
commit 344b8593a8
4 changed files with 37 additions and 30 deletions

View File

@@ -10,7 +10,8 @@ function magic_init(&$a) {
if($hash) {
$x = q("select xchan.xchan_url, hubloc.* from xchan left join hubloc on xchan_hash = hubloc_hash
where hublock_hash = '%s' and (hubloc_flags & %d) limit 1",
where hubloc_hash = '%s' and (hubloc_flags & %d) limit 1",
dbesc($hash),
intval(HUBLOC_FLAGS_PRIMARY)
);
}