Add feed title to imported entries

Also fixes one bug where a new feed was not saved and
improved HTML stripping a bit.
This commit is contained in:
Torsten Grote
2016-08-22 12:04:20 -03:00
parent 22e7ec5b27
commit e10f68b496
4 changed files with 69 additions and 21 deletions

View File

@@ -60,7 +60,7 @@ class IdentityManagerImpl implements IdentityManager {
LocalAuthor author;
Transaction txn = db.startTransaction(true);
try {
author = db.getLocalAuthor(txn, a);
author = getLocalAuthor(txn, a);
txn.setComplete();
} finally {
db.endTransaction(txn);
@@ -68,6 +68,12 @@ class IdentityManagerImpl implements IdentityManager {
return author;
}
@Override
public LocalAuthor getLocalAuthor(Transaction txn, AuthorId a)
throws DbException {
return db.getLocalAuthor(txn, a);
}
@Override
public LocalAuthor getLocalAuthor() throws DbException {
return getLocalAuthors().iterator().next();