Compare commits

..

No commits in common. "8a47252d3314bcf5ec9561ae929f0b0347b9c7f2" and "b21685cb0c497633774221a3e34021aea7a36eb7" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View file

@ -13,7 +13,7 @@
v-if="!$store.state.users.currentUser.locked && newStatus.visibility == 'private' && !disableLockWarning"
keypath="post_status.account_not_locked_warning"
tag="p"
class="visibility-notice notice-dismissible"
class="visibility-notice"
scope="global"
>
<button
@ -70,7 +70,7 @@
</p>
<p
v-else-if="newStatus.visibility === 'direct'"
class="visibility-notice notice-dismissible"
class="visibility-notice"
>
<span v-if="safeDMEnabled">{{ $t('post_status.direct_warning_to_first_only') }}</span>
<span v-else>{{ $t('post_status.direct_warning_to_all') }}</span>

View file

@ -153,7 +153,7 @@ const _mergeJournal = (...journals) => {
export const _mergeHighlights = (recent, stale) => {
if (!stale) return recent
if (!recent) return stale
const { _journal: recentJournal, ...recentHighlight } = recent
const { _journal: recentJournal, highlight: recentHighlight } = recent
const { _journal: staleJournal } = stale
console.log(recentHighlight)
/** Journal entry format:
@ -184,7 +184,7 @@ export const _mergeHighlights = (recent, stale) => {
return console.error(`Unknown journal operation: '${operation}'`)
}
})
return { ...resultHighlight, _journal: Journal }
return { highlight: resultHighlight, _journal: Journal }
}
export const useUserHighlightStore = defineStore('user_highlight', {
@ -333,7 +333,6 @@ export const useUserHighlightStore = defineStore('user_highlight', {
if (stale && recent && !this.dirty) {
this.cache._timestamp = Math.min(stale._timestamp, recent._timestamp)
}
console.log('CACHE', this.cache)
this.highlight = this.cache.highlight
},
pushHighlight({ force = false } = {}) {