fixed the user link resolution part of this tag
This commit is contained in:
parent
7830717e0a
commit
18c8a5ace1
|
@ -107,7 +107,7 @@ public class PostRewriteTag extends VeniceConfBodyTagSupport implements LinkType
|
|||
} // end if
|
||||
// else there were no post links, just leave "data" the way it is
|
||||
|
||||
if (data.indexOf(PostLinkRewriter.URI_PREFIX)<0)
|
||||
if (data.indexOf(UserNameRewriter.URI_PREFIX)<0)
|
||||
{ // no user links in here - output what we've got and call it
|
||||
output(body,data);
|
||||
return SKIP_BODY;
|
||||
|
@ -116,7 +116,7 @@ public class PostRewriteTag extends VeniceConfBodyTagSupport implements LinkType
|
|||
|
||||
// begin replacing the user links with real user links
|
||||
t = data;
|
||||
p = t.indexOf(PostLinkRewriter.URI_PREFIX);
|
||||
p = t.indexOf(UserNameRewriter.URI_PREFIX);
|
||||
while (p>=0)
|
||||
{ // break off the start of the string and append it
|
||||
if (p>0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user