Revert "fix: urls in posts and announces"

This reverts commit 4fb6574cf7.
This commit is contained in:
Julian Lam
2024-03-20 23:18:12 -04:00
parent c9985c5cd6
commit 6fa43b9ef0
2 changed files with 3 additions and 11 deletions

View File

@@ -10,7 +10,6 @@ const posts = require('../posts');
const topics = require('../topics');
const categories = require('../categories');
const notifications = require('../notifications');
const utils = require('../utils');
const activitypub = require('.');
const socketHelpers = require('../socket.io/helpers');
@@ -155,7 +154,7 @@ inbox.announce = async (req) => {
await topics.events.log(tid, {
type: 'announce',
uid: actor,
href: utils.isNumber(pid) ? `/post/${pid}` : pid,
href: `/post/${pid}`,
pid,
timestamp,
});