mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
Create correct shareable for RSS blogs.
Also removed "personal blog" wording that doesn't apply to RSS blogs.
This commit is contained in:
@@ -32,8 +32,10 @@ class BlogMessageParserImpl extends MessageParserImpl<Blog> {
|
||||
throws FormatException {
|
||||
String name = descriptor.getString(0);
|
||||
byte[] publicKey = descriptor.getRaw(1);
|
||||
boolean rssFeed = descriptor.getBoolean(2);
|
||||
Author author = authorFactory.createAuthor(name, publicKey);
|
||||
return blogFactory.createBlog(author);
|
||||
if (rssFeed) return blogFactory.createFeedBlog(author);
|
||||
else return blogFactory.createBlog(author);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -139,12 +139,11 @@ abstract class SharingManagerImpl<S extends Shareable>
|
||||
return false;
|
||||
}
|
||||
|
||||
protected void initializeSharedSession(Transaction txn, Contact c,
|
||||
S shareable) throws DbException, FormatException {
|
||||
void initializeSharedSession(Transaction txn, Contact c, S shareable)
|
||||
throws DbException, FormatException {
|
||||
GroupId contactGroupId = getContactGroup(c).getId();
|
||||
Session session =
|
||||
new Session(SHARING, contactGroupId, shareable.getId(), null,
|
||||
null, 0, 0);
|
||||
Session session = new Session(SHARING, contactGroupId,
|
||||
shareable.getId(), null, null, 0, 0);
|
||||
MessageId storageId = createStorageId(txn, contactGroupId);
|
||||
storeSession(txn, storageId, session);
|
||||
}
|
||||
@@ -442,8 +441,7 @@ abstract class SharingManagerImpl<S extends Shareable>
|
||||
}
|
||||
}
|
||||
|
||||
protected void removingShareable(Transaction txn, S shareable)
|
||||
throws DbException {
|
||||
void removingShareable(Transaction txn, S shareable) throws DbException {
|
||||
SessionId sessionId = getSessionId(shareable.getId());
|
||||
// If we have any sessions in progress, tell the contacts we're leaving
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user