replace cheogram cids with monocles

This commit is contained in:
Arne 2023-05-08 17:26:20 +02:00
parent 3b1f77fb5d
commit eaab0b1048
2 changed files with 3 additions and 2 deletions

View file

@ -99,6 +99,7 @@ dependencies {
implementation 'com.github.singpolyma:Better-Link-Movement-Method:4df081e1e4'
implementation project(':libs:AXML')
implementation 'com.github.ipld:java-cid:v1.3.1'
implementation 'com.github.woltapp:blurhash:master'
}

View file

@ -1055,7 +1055,7 @@ public class DatabaseBackend extends SQLiteOpenHelper {
public DownloadableFile getFileForCid(Cid cid) {
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor = db.query("cheogram.cids", new String[]{"path"}, "cid=?", new String[]{cid.toString()}, null, null, null);
Cursor cursor = db.query("monocles.cids", new String[]{"path"}, "cid=?", new String[]{cid.toString()}, null, null, null);
DownloadableFile f = null;
if (cursor.moveToNext()) {
f = new DownloadableFile(cursor.getString(0));
@ -1066,7 +1066,7 @@ public class DatabaseBackend extends SQLiteOpenHelper {
public boolean isBlockedMedia(Cid cid) {
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor = db.query("cheogram.blocked_media", new String[]{"count(*)"}, "cid=?", new String[]{cid.toString()}, null, null, null);
Cursor cursor = db.query("monocles.blocked_media", new String[]{"count(*)"}, "cid=?", new String[]{cid.toString()}, null, null, null);
boolean is = false;
if (cursor.moveToNext()) {
is = cursor.getInt(0) > 0;