update fork #128

Manually merged
tristan merged 181 commits from mirror/monocles_chat_clean:master into master 2026-01-23 14:02:38 +01:00
Showing only changes of commit f8efbe567b - Show all commits

Add author to microblog posts

Arne 2026-01-09 12:40:59 +01:00

View file

@ -840,6 +840,9 @@ public class IqGenerator extends AbstractGenerator {
final Element entry = item.addChild("entry", Namespace.ATOM);
entry.addChild("title").setContent(title);
entry.addChild("content").setContent(content);
final Element author = entry.addChild("author");
author.addChild("name").setContent(account.getDisplayName());
author.addChild("uri").setContent("xmpp:" + account.getJid().asBareJid().toString());
final String id = "tag:" + account.getServer() + "," + AbstractGenerator.getTimestamp(System.currentTimeMillis()) + ":" + UUID.randomUUID().toString();
entry.addChild("id").setContent(id);
final String now = AbstractGenerator.getTimestamp(System.currentTimeMillis());