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
525d84d9
Commit
525d84d9
authored
Dec 01, 2015
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接收 Markdown 文章来源格式
parent
6f98a4e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/main/java/org/b3log/solo/api/symphony/ArticleReceiver.java
...ain/java/org/b3log/solo/api/symphony/ArticleReceiver.java
+3
-3
No files found.
src/main/java/org/b3log/solo/api/symphony/ArticleReceiver.java
View file @
525d84d9
...
...
@@ -46,7 +46,7 @@ import org.jsoup.Jsoup;
* Article receiver (from B3log Symphony).
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.
0.6, Nov 20
, 2015
* @version 1.0.
1.6, Oct 1
, 2015
* @since 0.5.5
*/
@RequestProcessor
...
...
@@ -156,7 +156,7 @@ public class ArticleReceiver {
String
content
=
article
.
getString
(
Article
.
ARTICLE_CONTENT
);
final
String
articleId
=
article
.
getString
(
Keys
.
OBJECT_ID
);
content
+=
"
<br/><br/>
<p style='font-size: 12px;'><i>该文章同步自 <a href='http://hacpai.com/article/"
+
articleId
content
+=
"
\n\n
<p style='font-size: 12px;'><i>该文章同步自 <a href='http://hacpai.com/article/"
+
articleId
+
"' target='_blank'>黑客派</a></i></p>"
;
article
.
put
(
Article
.
ARTICLE_CONTENT
,
content
);
...
...
@@ -253,7 +253,7 @@ public class ArticleReceiver {
article
.
put
(
Article
.
ARTICLE_VIEW_PWD
,
""
);
String
content
=
article
.
getString
(
Article
.
ARTICLE_CONTENT
);
content
+=
"
<br/><br/>
<p style='font-size: 12px;'><i>该文章同步自 <a href='http://hacpai.com/article/"
+
articleId
content
+=
"
\n\n
<p style='font-size: 12px;'><i>该文章同步自 <a href='http://hacpai.com/article/"
+
articleId
+
"' target='_blank'>黑客派</a></i></p>"
;
article
.
put
(
Article
.
ARTICLE_CONTENT
,
content
);
...
...
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