mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Prevent personal blogs from being removed
This also adds unit tests to prevent regressions like this in the future.
This commit is contained in:
@@ -259,6 +259,7 @@ class BlogManagerImpl extends BdfIncomingMessageHook implements BlogManager,
|
||||
Blog b = getBlog(txn, g);
|
||||
AuthorId authorId = b.getAuthor().getId();
|
||||
LocalAuthor localAuthor = identityManager.getLocalAuthor(txn);
|
||||
if (localAuthor.getId().equals(authorId)) return false;
|
||||
canBeRemoved = !contactManager
|
||||
.contactExists(txn, authorId, localAuthor.getId());
|
||||
return canBeRemoved;
|
||||
|
||||
Reference in New Issue
Block a user