another pathetic try to fix the sidebar shit

This commit is contained in:
2026-07-16 22:51:16 +02:00
parent 353fc382de
commit 8d9fa3fafd
2 changed files with 18 additions and 3 deletions

View File

@@ -614,7 +614,8 @@ export default (router, tpl) => {
// sidebar renders the correct clamped state immediately on first paint.
const activityIsLong = content.length > 120
|| content.split('\n').length > 2
|| activityFiles.length > 0;
|| activityFiles.length > 0
|| /\[(video|audio|youtube|img)\]|!\[|https?:\/\//i.test(content);
db.notify('activity', JSON.stringify({
user_id: req.session.id,
item_id: item_id,
@@ -1103,7 +1104,8 @@ export default (router, tpl) => {
// attachments (images/video) will also push height above the limit.
const isLong = commentContent.length > 120
|| commentContent.split('\n').length > 2
|| commentFiles.length > 0;
|| commentFiles.length > 0
|| /\[(video|audio|youtube|img)\]|!\[|https?:\/\//i.test(commentContent);
return {
...c,