-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of rcbuilder.ch.internal:oss/spindle into develop
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* | ||
* Author: Mo McRoberts <[email protected]> | ||
* | ||
* Copyright (c) 2014-2015 BBC | ||
* Copyright (c) 2014-2017 BBC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -53,13 +53,15 @@ spindle_index_about(SQL *sql, const char *id, SPINDLEENTRY *data) | |
NULL | ||
}; | ||
|
||
#if SPINDLE_ENABLE_ABOUT_SELF | ||
/* Force an entity to always 'about' itself, so that queries match both | ||
* topics and the things about those topics | ||
*/ | ||
if(sql_executef(sql, "INSERT INTO \"about\" (\"id\", \"about\") VALUES (%Q, %Q)", id, id)) | ||
{ | ||
return -1; | ||
} | ||
#endif | ||
if(!(query = librdf_new_statement(data->spindle->world))) | ||
{ | ||
return -1; | ||
|