forked from mirror/misskey
145389768d
* pub-relay * relay actorをApplicationにする * Disable koa-compress * Homeはリレーに送らない * Disable debug * UI * cleanupなど
15 lines
453 B
TypeScript
15 lines
453 B
TypeScript
import config from '../../../config';
|
|
import { Relay } from '../../../models/entities/relay';
|
|
import { ILocalUser } from '../../../models/entities/user';
|
|
|
|
export function renderFollowRelay(relay: Relay, relayActor: ILocalUser) {
|
|
const follow = {
|
|
id: `${config.url}/activities/follow-relay/${relay.id}`,
|
|
type: 'Follow',
|
|
actor: `${config.url}/users/${relayActor.id}`,
|
|
object: 'https://www.w3.org/ns/activitystreams#Public'
|
|
};
|
|
|
|
return follow;
|
|
}
|