feat: support for generic repost
This commit is contained in:
parent
14b3fbd496
commit
a40d7b0676
11 changed files with 92 additions and 68 deletions
|
|
@ -23,6 +23,7 @@ import {
|
|||
TThemeSetting,
|
||||
TTranslationServiceConfig
|
||||
} from '@/types'
|
||||
import { kinds } from 'nostr-tools'
|
||||
|
||||
class LocalStorageService {
|
||||
static instance: LocalStorageService
|
||||
|
|
@ -181,10 +182,13 @@ class LocalStorageService {
|
|||
showKindSet.delete(24236) // remove typo kind
|
||||
showKindSet.add(ExtendedKind.ADDRESSABLE_SHORT_VIDEO)
|
||||
}
|
||||
if (showKindsVersion < 4 && showKindSet.has(kinds.Repost)) {
|
||||
showKindSet.add(kinds.GenericRepost)
|
||||
}
|
||||
this.showKinds = Array.from(showKindSet)
|
||||
}
|
||||
window.localStorage.setItem(StorageKey.SHOW_KINDS, JSON.stringify(this.showKinds))
|
||||
window.localStorage.setItem(StorageKey.SHOW_KINDS_VERSION, '3')
|
||||
window.localStorage.setItem(StorageKey.SHOW_KINDS_VERSION, '4')
|
||||
|
||||
this.hideContentMentioningMutedUsers =
|
||||
window.localStorage.getItem(StorageKey.HIDE_CONTENT_MENTIONING_MUTED_USERS) === 'true'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue