no emoji reactions for akkoma announcements
This commit is contained in:
parent
d44df2c23c
commit
40a033d692
|
@ -71,11 +71,12 @@ public class AnnouncementsFragment extends BaseStatusListFragment<Announcement>
|
||||||
Status fakeStatus = a.toStatus();
|
Status fakeStatus = a.toStatus();
|
||||||
TextStatusDisplayItem textItem = new TextStatusDisplayItem(a.id, HtmlParser.parse(a.content, a.emojis, a.mentions, a.tags, accountID), this, fakeStatus, true);
|
TextStatusDisplayItem textItem = new TextStatusDisplayItem(a.id, HtmlParser.parse(a.content, a.emojis, a.mentions, a.tags, accountID), this, fakeStatus, true);
|
||||||
textItem.textSelectable = true;
|
textItem.textSelectable = true;
|
||||||
return List.of(
|
|
||||||
HeaderStatusDisplayItem.fromAnnouncement(a, fakeStatus, instanceUser, this, accountID, this::onMarkAsRead),
|
List<StatusDisplayItem> items=new ArrayList<>();
|
||||||
textItem,
|
items.add(HeaderStatusDisplayItem.fromAnnouncement(a, fakeStatus, instanceUser, this, accountID, this::onMarkAsRead));
|
||||||
new EmojiReactionsStatusDisplayItem(a.id, this, fakeStatus, accountID, false, true)
|
items.add(textItem);
|
||||||
);
|
if(!isInstanceAkkoma()) items.add(new EmojiReactionsStatusDisplayItem(a.id, this, fakeStatus, accountID, false, true));
|
||||||
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onMarkAsRead(String id) {
|
public void onMarkAsRead(String id) {
|
||||||
|
|
Loading…
Reference in New Issue