From b90b36f54546b4bad7618a57e7f5484892e23b52 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 16 May 2017 08:21:42 -1000 Subject: Show local name in title for links to ids as suggested in %O4GCxFpucC3DeSTCuiR9GCha9g/NXbrQYm9iam5z1RE=.sha256 --- lib/app.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index eee6c95..7b5bccc 100644 --- a/lib/app.js +++ b/lib/app.js @@ -191,6 +191,11 @@ App.prototype.getReverseNameSync = function (name) { return id } +App.prototype.getNameSync = function (name) { + var about = this.aboutCache.get(name) + return about && about.name +} + function getMsgWithValue(sbot, id, cb) { if (!id) return cb() sbot.get(id, function (err, value) { -- cgit v1.2.3