Skip to content

Commit b6846ef

Browse files
working on #47
1 parent 7a14863 commit b6846ef

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/java/org/woehlke/twitterwall/oodm/entities/Tweet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ public String getFormattedText(){
205205
Set<Url> urls = this.entities.getUrls();
206206
formattedText = getFormattedTextForUrls(urls,formattedText);
207207

208+
Set<Mention> mentions = this.entities.getMentions();
209+
208210
return formattedText;
209211
}
210212

src/main/resources/templates/timeline.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
th:attr="src=${tweet.user.bigProfileImageUrl},alt=${tweet.user.description},title=${tweet.user.description}"/></a>
1919
<div class="caption">
2020
<h2><a href="" th:href="@{|/profile/${tweet.user.screenName}|}"><span th:text="${tweet.user.name}">Username</span></a></h2>
21+
<!--
2122
<h3><a href="" th:href="@{|/profile/${tweet.user.screenName}|}"><b>@<span th:text="${tweet.user.screenName}">fromUser</span></b></a></h3>
23+
<p>Antwort an <span th:each="mention : ${tweet.retweetedStatus.entities.mentions}">
24+
<a href="" th:href="@{|/profile/${mention.screenName}|}">@<span th:text="${mention.screenName}">asdf</span></a>&nbsp;
25+
</span></p>
26+
-->
2227
<p th:if="${tweet.retweetedStatus} == null"><span th:utext="${tweet.formattedText}">Text</span></p>
2328
<p th:if="${tweet.retweetedStatus} == null">
2429
<i class="fa fa-retweet" aria-hidden="true"></i> <span th:text="${tweet.retweetCount}">12</span>&nbsp;

0 commit comments

Comments
 (0)