mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
experimental rtl support (#209)
This commit is contained in:
@@ -31,6 +31,7 @@ public class Entry implements Serializable {
|
||||
entry.setGuid(feedEntry.getGuid());
|
||||
entry.setTitle(feedEntry.getContent().getTitle());
|
||||
entry.setContent(feedEntry.getContent().getContent());
|
||||
entry.setRtl(FeedUtils.isRTL(feedEntry));
|
||||
entry.setAuthor(feedEntry.getAuthor());
|
||||
entry.setEnclosureUrl(status.getEntry().getContent().getEnclosureUrl());
|
||||
entry.setEnclosureType(status.getEntry().getContent()
|
||||
@@ -77,6 +78,9 @@ public class Entry implements Serializable {
|
||||
@ApiProperty("entry content")
|
||||
private String content;
|
||||
|
||||
@ApiProperty("wether entry content and title are rtl")
|
||||
private boolean rtl;
|
||||
|
||||
@ApiProperty("entry author")
|
||||
private String author;
|
||||
|
||||
@@ -241,4 +245,12 @@ public class Entry implements Serializable {
|
||||
this.iconUrl = iconUrl;
|
||||
}
|
||||
|
||||
public boolean isRtl() {
|
||||
return rtl;
|
||||
}
|
||||
|
||||
public void setRtl(boolean rtl) {
|
||||
this.rtl = rtl;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user