@@ -14,7 +14,7 @@ import { timelineObject } from '../utils/react_props.js';
1414
1515const storageKey = 'quote_replies.draftLocation' ;
1616const buttonClass = 'xkit-quote-replies' ;
17- const meatballButtonId = 'quote_replies ' ;
17+ const meatballButtonId = 'quote-replies ' ;
1818const dropdownButtonClass = 'xkit-quote-replies-dropdown' ;
1919
2020const originalPostTagStorageKey = 'quick_tags.preferences.originalPostTag' ;
@@ -72,10 +72,16 @@ const quoteReply = async (tumblelogName, notificationProps) => {
7272 if ( ! reply ) throw new Error ( 'No replies found on target post.' ) ;
7373 if ( Math . floor ( reply . timestamp ) !== timestamp ) throw new Error ( 'Reply not found.' ) ;
7474
75- const replyingBlogName = reply . blog . name ;
76- const replyingBlogUuid = reply . blog . uuid ;
77-
78- openQuoteReplyPost ( { type, replyingBlogName, replyingBlogUuid, reply, postSummary : targetPostSummary , postUrl, targetBlogUuid : uuid , targetBlogName : tumblelogName } ) ;
75+ openQuoteReplyPost ( {
76+ type,
77+ replyingBlogName : reply . blog . name ,
78+ replyingBlogUuid : reply . blog . uuid ,
79+ reply,
80+ postSummary : targetPostSummary ,
81+ postUrl,
82+ targetBlogUuid : uuid ,
83+ targetBlogName : tumblelogName
84+ } ) ;
7985} ;
8086
8187const openQuoteReplyPost = async ( { type, replyingBlogName, replyingBlogUuid, postSummary, postUrl, reply, targetBlogUuid, targetBlogName } ) => {
@@ -133,8 +139,8 @@ const processNoteProps = ([noteProps, parentNoteProps]) => {
133139 targetBlogName : noteProps . blog . name
134140 } ;
135141 }
136- for ( const { formatting } of noteProps . note . content ) {
137- for ( const { type, blog } of formatting ?? [ ] ) {
142+ for ( const { formatting = [ ] } of noteProps . note . content ) {
143+ for ( const { type, blog } of formatting ) {
138144 if ( type === 'mention' && userBlogNames . includes ( blog . name ) ) {
139145 return {
140146 type : 'note_mention' ,
0 commit comments