Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
6face59b
Commit
6face59b
authored
Jul 02, 2015
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #12023
parent
f6499f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
core/src/main/java/org/b3log/solo/processor/util/Filler.java
core/src/main/java/org/b3log/solo/processor/util/Filler.java
+9
-7
No files found.
core/src/main/java/org/b3log/solo/processor/util/Filler.java
View file @
6face59b
...
@@ -68,7 +68,7 @@ import org.json.JSONObject;
...
@@ -68,7 +68,7 @@ import org.json.JSONObject;
* Filler utilities.
* Filler utilities.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.3.
9.11, Jun 15
, 2015
* @version 1.3.
10.11, Jul 2
, 2015
* @since 0.3.1
* @since 0.3.1
*/
*/
@Service
@Service
...
@@ -625,15 +625,17 @@ public class Filler {
...
@@ -625,15 +625,17 @@ public class Filler {
dataModel
.
put
(
Preference
.
BLOG_SUBTITLE
,
preference
.
getString
(
Preference
.
BLOG_SUBTITLE
));
dataModel
.
put
(
Preference
.
BLOG_SUBTITLE
,
preference
.
getString
(
Preference
.
BLOG_SUBTITLE
));
dataModel
.
put
(
Preference
.
HTML_HEAD
,
preference
.
getString
(
Preference
.
HTML_HEAD
));
dataModel
.
put
(
Preference
.
HTML_HEAD
,
preference
.
getString
(
Preference
.
HTML_HEAD
));
final
String
metaKeywords
=
preference
.
getString
(
Preference
.
META_KEYWORDS
);
String
metaKeywords
=
preference
.
getString
(
Preference
.
META_KEYWORDS
);
if
(
!
Strings
.
isEmptyOrNull
(
metaKeywords
))
{
if
(
Strings
.
isEmptyOrNull
(
metaKeywords
))
{
dataModel
.
put
(
Preference
.
META_KEYWORDS
,
metaKeywords
)
;
metaKeywords
=
""
;
}
}
dataModel
.
put
(
Preference
.
META_KEYWORDS
,
metaKeywords
);
final
String
metaDescription
=
preference
.
getString
(
Preference
.
META_DESCRIPTION
);
String
metaDescription
=
preference
.
getString
(
Preference
.
META_DESCRIPTION
);
if
(
!
Strings
.
isEmptyOrNull
(
metaDescription
))
{
if
(
Strings
.
isEmptyOrNull
(
metaDescription
))
{
dataModel
.
put
(
Preference
.
META_DESCRIPTION
,
metaDescription
)
;
metaDescription
=
""
;
}
}
dataModel
.
put
(
Preference
.
META_DESCRIPTION
,
metaDescription
);
dataModel
.
put
(
Common
.
YEAR
,
String
.
valueOf
(
Calendar
.
getInstance
().
get
(
Calendar
.
YEAR
)));
dataModel
.
put
(
Common
.
YEAR
,
String
.
valueOf
(
Calendar
.
getInstance
().
get
(
Calendar
.
YEAR
)));
dataModel
.
put
(
Common
.
IS_LOGGED_IN
,
null
!=
userQueryService
.
getCurrentUser
(
request
));
dataModel
.
put
(
Common
.
IS_LOGGED_IN
,
null
!=
userQueryService
.
getCurrentUser
(
request
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment