Commit 0e5bb3e9 authored by Torsten Grote's avatar Torsten Grote

[core] RSS blog posts are not local: re-enables notification

parent ff2f7104
Pipeline #3206 passed with stage
in 9 minutes and 12 seconds
......@@ -240,7 +240,9 @@ class BlogManagerImpl extends BdfIncomingMessageHook implements BlogManager,
MessageId postId = p.getMessage().getId();
BlogPostHeader h =
getPostHeaderFromMetadata(txn, groupId, postId, meta);
BlogPostAddedEvent event = new BlogPostAddedEvent(groupId, h, true);
boolean local = !b.isRssFeed();
BlogPostAddedEvent event =
new BlogPostAddedEvent(groupId, h, local);
txn.attach(event);
} catch (FormatException e) {
throw new DbException(e);
......
......@@ -310,6 +310,7 @@ public class BlogManagerImplTest extends BriarTestCase {
assertTrue(event instanceof BlogPostAddedEvent);
BlogPostAddedEvent e = (BlogPostAddedEvent) event;
assertEquals(blog1.getId(), e.getGroupId());
assertTrue(e.isLocal());
BlogPostHeader h = e.getHeader();
assertEquals(POST, h.getType());
......@@ -360,6 +361,7 @@ public class BlogManagerImplTest extends BriarTestCase {
assertTrue(event instanceof BlogPostAddedEvent);
BlogPostAddedEvent e = (BlogPostAddedEvent) event;
assertEquals(rssBlog.getId(), e.getGroupId());
assertFalse(e.isLocal());
BlogPostHeader h = e.getHeader();
assertEquals(POST, h.getType());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment