mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Use a versioned format for encoding authors.
This commit is contained in:
@@ -25,6 +25,7 @@ public interface BlogConstants {
|
||||
String KEY_TIMESTAMP = "timestamp";
|
||||
String KEY_TIME_RECEIVED = "timeReceived";
|
||||
String KEY_AUTHOR_ID = "id";
|
||||
String KEY_FORMAT_VERSION = "formatVersion";
|
||||
String KEY_AUTHOR_NAME = "name";
|
||||
String KEY_PUBLIC_KEY = "publicKey";
|
||||
String KEY_AUTHOR = "author";
|
||||
|
||||
@@ -18,6 +18,7 @@ public interface FeedConstants {
|
||||
// group metadata keys
|
||||
String KEY_FEEDS = "feeds";
|
||||
String KEY_FEED_URL = "feedURL";
|
||||
String KEY_FORMAT_VERSION = "formatVersion";
|
||||
String KEY_BLOG_TITLE = "blogTitle";
|
||||
String KEY_PUBLIC_KEY = "publicKey";
|
||||
String KEY_PRIVATE_KEY = "privateKey";
|
||||
|
||||
@@ -14,27 +14,20 @@ public interface ForumConstants {
|
||||
*/
|
||||
int FORUM_SALT_LENGTH = 32;
|
||||
|
||||
/**
|
||||
* The maximum length of a forum post's content type in UTF-8 bytes.
|
||||
*/
|
||||
int MAX_CONTENT_TYPE_LENGTH = 50;
|
||||
|
||||
/**
|
||||
* The maximum length of a forum post's body in bytes.
|
||||
*/
|
||||
int MAX_FORUM_POST_BODY_LENGTH = MAX_MESSAGE_BODY_LENGTH - 1024;
|
||||
|
||||
/* Forum Sharing Constants */
|
||||
String FORUM_NAME = "forumName";
|
||||
String FORUM_SALT = "forumSalt";
|
||||
|
||||
// Database keys
|
||||
// Metadata keys
|
||||
String KEY_TIMESTAMP = "timestamp";
|
||||
String KEY_PARENT = "parent";
|
||||
String KEY_ID = "id";
|
||||
String KEY_NAME = "name";
|
||||
String KEY_PUBLIC_NAME = "publicKey";
|
||||
String KEY_AUTHOR = "author";
|
||||
String KEY_ID = "id";
|
||||
String KEY_FORMAT_VERSION = "formatVersion";
|
||||
String KEY_NAME = "name";
|
||||
String KEY_PUBLIC_KEY = "publicKey";
|
||||
String KEY_LOCAL = "local";
|
||||
String KEY_READ = "read";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user