Merge remote-tracking branch 'origin/develop' into activitypub

This commit is contained in:
Julian Lam
2024-10-16 15:03:05 -04:00
180 changed files with 1030 additions and 650 deletions

View File

@@ -33,6 +33,7 @@ module.exports = function (utils, Benchpress, relative_path) {
shouldHideReplyContainer,
humanReadableNumber,
formattedNumber,
txEscape,
generatePlaceholderWave,
register,
__escape: identity,
@@ -376,6 +377,10 @@ module.exports = function (utils, Benchpress, relative_path) {
return utils.addCommas(number);
}
function txEscape(text) {
return String(text).replace(/%/g, '%').replace(/,/g, ',');
}
function generatePlaceholderWave(items) {
const html = items.map((i) => {
if (i === 'divider') {