Add preferRSS setting

This commit is contained in:
Cadence Fish
2020-02-03 03:53:37 +13:00
parent c5d8b5788b
commit 6e136dc77a
7 changed files with 84 additions and 26 deletions

View File

@@ -180,9 +180,9 @@ class TimelineEntry extends TimelineBaseMethods {
}
// The owner may be in the user cache, so copy from that.
// This could be implemented better.
else if (collectors.requestCache.hasNotPromise("user/"+this.data.owner.username)) {
else if (collectors.userRequestCache.hasNotPromise("user/"+this.data.owner.username)) {
/** @type {import("./User")} */
const user = collectors.requestCache.getWithoutClean("user/"+this.data.owner.username)
const user = collectors.userRequestCache.getWithoutClean("user/"+this.data.owner.username)
if (user.data.full_name) {
this.data.owner = {
id: user.data.id,