mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-16 05:07:29 +00:00
Correctly show co-authored videos
This commit is contained in:
parent
6b72622939
commit
10b38185c4
@ -85,6 +85,10 @@ class TimelineEntry extends TimelineBaseMethods {
|
||||
* @param {import("../types").TimelineEntryN3} data
|
||||
*/
|
||||
applyN3(data) {
|
||||
// don't apply null fields from the update over real data. this didn't used to happen, but it can happen now with a co-authored post since those have an incomplete author (triggering the update) and are no longer fetched from real N3
|
||||
for (const key of Object.keys(data)) {
|
||||
if (this.data[key] != null && data[key] == null) delete data[key]
|
||||
}
|
||||
Object.assign(this.data, data)
|
||||
this.fixData()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user