🪵📌 (#5594)
This commit is contained in:
committed by
Takayuki KUSANO
parent
475708ea30
commit
3ab5190aca
@@ -145,6 +145,8 @@ export type LogEvents = {
|
|||||||
}
|
}
|
||||||
'post:mute': {}
|
'post:mute': {}
|
||||||
'post:unmute': {}
|
'post:unmute': {}
|
||||||
|
'post:pin': {}
|
||||||
|
'post:unpin': {}
|
||||||
'profile:follow:sampled': {
|
'profile:follow:sampled': {
|
||||||
didBecomeMutual: boolean | undefined
|
didBecomeMutual: boolean | undefined
|
||||||
followeeClout: number | undefined
|
followeeClout: number | undefined
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import {getCurrentRoute} from '#/lib/routes/helpers'
|
|||||||
import {makeProfileLink} from '#/lib/routes/links'
|
import {makeProfileLink} from '#/lib/routes/links'
|
||||||
import {CommonNavigatorParams, NavigationProp} from '#/lib/routes/types'
|
import {CommonNavigatorParams, NavigationProp} from '#/lib/routes/types'
|
||||||
import {shareUrl} from '#/lib/sharing'
|
import {shareUrl} from '#/lib/sharing'
|
||||||
|
import {logEvent} from '#/lib/statsig/statsig'
|
||||||
import {richTextToString} from '#/lib/strings/rich-text-helpers'
|
import {richTextToString} from '#/lib/strings/rich-text-helpers'
|
||||||
import {toShareUrl} from '#/lib/strings/url-helpers'
|
import {toShareUrl} from '#/lib/strings/url-helpers'
|
||||||
import {useTheme} from '#/lib/ThemeContext'
|
import {useTheme} from '#/lib/ThemeContext'
|
||||||
@@ -350,6 +351,7 @@ let PostDropdownBtn = ({
|
|||||||
])
|
])
|
||||||
|
|
||||||
const onPressPin = useCallback(() => {
|
const onPressPin = useCallback(() => {
|
||||||
|
logEvent(isPinned ? 'post:unpin' : 'post:pin', {})
|
||||||
pinPostMutate({
|
pinPostMutate({
|
||||||
postUri,
|
postUri,
|
||||||
postCid,
|
postCid,
|
||||||
|
|||||||
Reference in New Issue
Block a user