Don't require url/asset for snippet creation from discord.
This commit is contained in:
parent
444f43a195
commit
cd36eb44eb
|
@ -834,7 +834,7 @@ func HandleSnippetForInternedMessage(ctx context.Context, dbConn db.ConnOrTx, in
|
||||||
if shouldCreate {
|
if shouldCreate {
|
||||||
// Get an asset ID or URL to make a snippet from
|
// Get an asset ID or URL to make a snippet from
|
||||||
assetId, url, err := getSnippetAssetOrUrl(ctx, tx, &interned.Message)
|
assetId, url, err := getSnippetAssetOrUrl(ctx, tx, &interned.Message)
|
||||||
if assetId != nil || url != nil {
|
|
||||||
contentMarkdown := interned.MessageContent.LastContent
|
contentMarkdown := interned.MessageContent.LastContent
|
||||||
contentHTML := parsing.ParseMarkdown(contentMarkdown, parsing.DiscordMarkdown)
|
contentHTML := parsing.ParseMarkdown(contentMarkdown, parsing.DiscordMarkdown)
|
||||||
|
|
||||||
|
@ -873,7 +873,6 @@ func HandleSnippetForInternedMessage(ctx context.Context, dbConn db.ConnOrTx, in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if existingSnippet != nil {
|
if existingSnippet != nil {
|
||||||
// Update tags
|
// Update tags
|
||||||
|
|
Loading…
Reference in New Issue