Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
fix(publish): edit and reply
Browse files Browse the repository at this point in the history
  • Loading branch information
jpezninjo committed Nov 2, 2023
1 parent 713a423 commit f7316bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/publish/PublishWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,14 @@ async function toggleSensitive() {
}
async function publish() {
const isEditing = draft.editingStatus // need to save this before publishDraft
const status = await publishDraft()
if (status) {
const analyticsId = feedName ? `${feedName}.post.create` : 'post.create'
const analyticsId = isEditing
? 'post.edit'
: draft.params.inReplyToId
? 'post.reply'
: feedName ? `${feedName}.post.create` : 'post.create'
engagement.record({
ui_identifier: analyticsId,
mastodon_status_id: status.id,
Expand Down

0 comments on commit f7316bd

Please sign in to comment.