You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/03/20 21:18:33 UTC
svn commit: r387298 -
/incubator/roller/trunk/src/org/roller/business/RefererManagerImpl.java
Author: snoopdave
Date: Mon Mar 20 12:18:27 2006
New Revision: 387298
URL: http://svn.apache.org/viewcvs?rev=387298&view=rev
Log:
Fixes ROL-1085, check linkback extract property
Modified:
incubator/roller/trunk/src/org/roller/business/RefererManagerImpl.java
Modified: incubator/roller/trunk/src/org/roller/business/RefererManagerImpl.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/business/RefererManagerImpl.java?rev=387298&r1=387297&r2=387298&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/business/RefererManagerImpl.java (original)
+++ incubator/roller/trunk/src/org/roller/business/RefererManagerImpl.java Mon Mar 20 12:18:27 2006
@@ -39,7 +39,6 @@
protected PersistenceStrategy mStrategy;
protected Date mRefDate = new Date();
protected SimpleDateFormat mDateFormat = DateUtil.get8charDateFormat();
- protected boolean doLinkbackExtraction = false;
protected abstract List getReferersWithSameTitle(
WebsiteData website,
@@ -66,9 +65,6 @@
public RefererManagerImpl()
{
- // do we want to do linkback extractions for referrer processing?
- this.doLinkbackExtraction =
- RollerRuntimeConfig.getBooleanProperty("site.linkbacks.enabled");
}
//-----------------------------------------------------------------------
@@ -254,18 +250,20 @@
String refurl = ref.getRefererUrl();
// If not a direct or search engine then search for linkback
+ boolean doLinkbackExtraction =
+ RollerRuntimeConfig.getBooleanProperty("site.linkbacks.enabled");
if (doLinkbackExtraction
- && entry != null
- && !refurl.equals("direct")
- && !refurl.startsWith("http://google")
- && !refurl.startsWith("http://www.google")
- && !refurl.startsWith("http://search.netscape")
- && !refurl.startsWith("http://www.blinkpro")
- && !refurl.startsWith("http://search.msn")
- && !refurl.startsWith("http://search.yahoo")
- && !refurl.startsWith("http://uk.search.yahoo")
- && !refurl.startsWith("http://www.javablogs.com")
- && !refurl.startsWith("http://www.teoma")
+ && entry != null
+ && !refurl.equals("direct")
+ && !refurl.startsWith("http://google")
+ && !refurl.startsWith("http://www.google")
+ && !refurl.startsWith("http://search.netscape")
+ && !refurl.startsWith("http://www.blinkpro")
+ && !refurl.startsWith("http://search.msn")
+ && !refurl.startsWith("http://search.yahoo")
+ && !refurl.startsWith("http://uk.search.yahoo")
+ && !refurl.startsWith("http://www.javablogs.com")
+ && !refurl.startsWith("http://www.teoma")
) {
// Launch thread to extract referer linkback