no emoji reactions for akkoma announcements

This commit is contained in:
sk 2023-08-24 13:03:24 +02:00
parent d44df2c23c
commit 40a033d692
1 changed files with 6 additions and 5 deletions

View File

@ -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) {