activitypub: remove akkoma quote URLs #245
Loading…
Reference in a new issue
No description provided.
Delete branch "html-quote"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This should correctly display AP objects like this:
@ -8,3 +8,3 @@
const urlRegexFull = /^https?:\/\/[\w\/:%#@$&?!()\[\]~.,=+\-]+$/;
export function fromHtml(html: string, hashtagNames?: string[]): string {
export function fromHtml(html: string, hashtagNames?: string[], quoteUri?: string | null | undefined): string {
Since
quoteUri
is already marked as optional, you don't need to explicitly mark it as maybeundefined
.I just remember that I saw stuff like that elsewhere in the backend so I assumed it has to be given separately. But looking it up it seems it is indeed unnecessary.
@ -3,3 +3,3 @@
import { fromHtml } from '@/mfm/from-html.js';
export function htmlToMfm(html: string, tag?: IObject | IObject[]) {
export function htmlToMfm(html: string, tag?: IObject | IObject[], quoteUri?: string | null | undefined) {
Don't need the explicit
undefined
here as well.df185aa87a
to4a7caffbe1