Skip to content

Commit

Permalink
add ability to turn off the Quoddy FOAF interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mindcrime committed Jun 26, 2017
1 parent 0cf79cd commit a871273
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ class HomeController {

List quoddyUserNames = new ArrayList();

if( ConfigurationHolder.config.interface.foaf.enabled != null &&
!ConfigurationHolder.config.interface.foaf.enabled.isEmpty() &&
Boolean.parseBoolean( ConfigurationHolder.config.interface.foaf.enabled )
{

Object quoddyFoafUrl = ConfigurationHolder.config.urls.quoddy.foaf.endpoint;

if( quoddyFoafUrl )
Expand Down Expand Up @@ -286,7 +291,9 @@ class HomeController {
}

}

}


def sortedEntries = entries.sort { it.dateCreated }.reverse();
def model = [allEntries: sortedEntries,
channelName: channelName, currentPageNumber: pageNumber,
Expand Down

0 comments on commit a871273

Please sign in to comment.