mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 04:26:58 +00:00
set summary.haveNoteLocally before caching summary
This commit is contained in:
parent
1a19301c90
commit
938e094a1a
1 changed files with 3 additions and 3 deletions
|
@ -137,12 +137,12 @@ export class UrlPreviewService {
|
|||
summary.icon = this.wrap(summary.icon);
|
||||
summary.thumbnail = this.wrap(summary.thumbnail);
|
||||
|
||||
this.previewCache.set(key, summary);
|
||||
|
||||
if (summary.activityPub) {
|
||||
summary.haveNoteLocally = !! await this.apDbResolverService.getNoteFromApId(summary.activityPub);
|
||||
summary.haveNoteLocally = !!await this.apDbResolverService.getNoteFromApId(summary.activityPub);
|
||||
}
|
||||
|
||||
this.previewCache.set(key, summary);
|
||||
|
||||
// Cache 7days
|
||||
reply.header('Cache-Control', 'max-age=604800, immutable');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue